Skip to content

Commit

Permalink
pjordの所属会社を追加したことにより影響が出るテストを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
omochiumaiumai committed Mar 12, 2024
1 parent 93e930a commit d584d69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/models/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ class UserTest < ActiveSupport::TestCase
"またフィヨルドブートキャンプの Discord のサーバーに入室できるように、再度、Doc にある Discord の招待 URL にアクセスをお願いします。\n" \
'<https://bootcamp.fjord.jp/practices/129#url>'
assert_equal hajime.id, comment.commentable.user_id
assert_equal users(:'pijord-bot').id, comment.user_id
assert_equal users(:pjord).id, comment.user_id
assert_equal description, comment.body
end

Expand Down
1 change: 0 additions & 1 deletion test/system/user/companies_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class User::CompaniesTest < ApplicationSystemTestCase

assert_text '企業別(アドバイザー)'
assert_selector('a.tab-nav__item-link.is-active', text: 'アドバイザー')
assert_no_selector('.group-company-name__label', text: 'Lokka Inc.')
assert_selector('.group-company-name__label', text: 'ユーザの企業に登録しないで株式会社')
within first('.a-user-role.is-adviser') do
assert_equal first('.a-user-icons__item-icon.a-user-icon')['data-login-name'], 'advisernocolleguetrainee'
Expand Down
2 changes: 1 addition & 1 deletion test/system/users_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class UsersTest < ApplicationSystemTestCase
test 'search only adviser when target is adviser' do
visit_with_auth '/users?target=adviser', 'komagata'
find('.users .loaded', wait: 60)
assert_selector '.users-item', count: 3
assert_selector '.users-item', count: 4
fill_in 'js-user-search-input', with: 'advijirou'
assert_text 'アドバイ 次郎', count: 1

Expand Down

0 comments on commit d584d69

Please sign in to comment.