diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 01:45:44 +0000 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /spec/features/admin/admin_users_spec.rb | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) | |
download | gitlab-ce-85dc423f7090da0a52c73eb66faf22ddb20efff9.tar.gz |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'spec/features/admin/admin_users_spec.rb')
-rw-r--r-- | spec/features/admin/admin_users_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/admin/admin_users_spec.rb b/spec/features/admin/admin_users_spec.rb index 6cd18f2755c..a37210d2acc 100644 --- a/spec/features/admin/admin_users_spec.rb +++ b/spec/features/admin/admin_users_spec.rb @@ -279,7 +279,8 @@ RSpec.describe "Admin::Users" do expect(page).to have_content(user.email) expect(page).to have_content(user.name) - expect(page).to have_content(user.id) + expect(page).to have_content("ID: #{user.id}") + expect(page).to have_content("Namespace ID: #{user.namespace_id}") expect(page).to have_button('Deactivate user') expect(page).to have_button('Block user') expect(page).to have_button('Delete user') @@ -353,7 +354,7 @@ RSpec.describe "Admin::Users" do it 'sees impersonation log out icon' do subject - icon = first('.fa.fa-user-secret') + icon = first('[data-testid="incognito-icon"]') expect(icon).not_to be nil end @@ -536,7 +537,7 @@ RSpec.describe "Admin::Users" do it 'allows group membership to be revoked', :js do page.within(first('.group_member')) do - accept_confirm { find('.btn-remove').click } + accept_confirm { find('.btn[data-testid="remove-user"]').click } end wait_for_requests |