diff --git a/test/system/users_test.rb b/test/system/users_test.rb index bbb2638905c..d8da9b60789 100644 --- a/test/system/users_test.rb +++ b/test/system/users_test.rb @@ -655,8 +655,7 @@ class UsersTest < ApplicationSystemTestCase visit_with_auth '/users', 'komagata' click_link '現役 + 研修生' - assert_selector('a.tab-nav__item-link.is-active', text: '現役 + 研修生') - assert_text '現役 + 研修生' + assert_selector('h1.page-main-header__title', text: '現役 + 研修生') filtered_users = all('.users-item__icon .a-user-role') assert(filtered_users.all? do |user| classes = user[:class].split(' ') @@ -668,8 +667,7 @@ class UsersTest < ApplicationSystemTestCase visit_with_auth '/users', 'komagata' click_link '現役生' - assert_selector('a.tab-nav__item-link.is-active', text: '現役生') - assert_text '現役生' + assert_selector('h1.page-main-header__title', text: '現役生') filtered_users = all('.users-item__icon .a-user-role') assert(filtered_users.all? { |user| user[:class].split(' ').include?('is-student') }) end