diff options
Diffstat (limited to 'spec/features/admin/users/user_spec.rb')
-rw-r--r-- | spec/features/admin/users/user_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/admin/users/user_spec.rb b/spec/features/admin/users/user_spec.rb index f8f1fdaabb4..a95fd133133 100644 --- a/spec/features/admin/users/user_spec.rb +++ b/spec/features/admin/users/user_spec.rb @@ -260,7 +260,7 @@ RSpec.describe 'Admin::Users::User', feature_category: :user_management do it 'logs in as the user when impersonate is clicked' do subject - find('[data-testid="user-menu"]').click + find('[data-testid="user-dropdown"]').click expect(page.find(:css, '[data-testid="user-profile-link"]')['data-user']).to eql(another_user.username) end @@ -317,7 +317,7 @@ RSpec.describe 'Admin::Users::User', feature_category: :user_management do it 'logs out of impersonated user back to original user' do subject - find('[data-testid="user-menu"]').click + find('[data-testid="user-dropdown"]').click expect(page.find(:css, '[data-testid="user-profile-link"]')['data-user']).to eq(current_user.username) end |