summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-07-28 10:07:46 +0000
committerSimon Knox <simon@gitlab.com>2017-07-28 21:04:48 +0000
commitd783dcd0f2d882e6f7b768209ec881be6ede4732 (patch)
treee3519825554bb661608a61eaafe1b0796c44447f
parentda967803cce971b184873dbe5d65d07215de0b0a (diff)
downloadgitlab-ce-d783dcd0f2d882e6f7b768209ec881be6ede4732.tar.gz
Merge branch '35643-impersonate-spec' into '9-4-stable-patch-2'cherry-pick-41db362c
Resolve "Impersonation Tokens creation spec failure in admin_users_impersonation_tokens_spec.rb" See merge request !13145
-rw-r--r--spec/features/admin/admin_users_impersonation_tokens_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/admin/admin_users_impersonation_tokens_spec.rb b/spec/features/admin/admin_users_impersonation_tokens_spec.rb
index 97ffc54415c..034682dae27 100644
--- a/spec/features/admin/admin_users_impersonation_tokens_spec.rb
+++ b/spec/features/admin/admin_users_impersonation_tokens_spec.rb
@@ -32,11 +32,13 @@ describe 'Admin > Users > Impersonation Tokens', js: true do
check "api"
check "read_user"
- expect { click_on "Create impersonation token" }.to change { PersonalAccessTokensFinder.new(impersonation: true).execute.count }
+ click_on "Create impersonation token"
+
expect(active_impersonation_tokens).to have_text(name)
expect(active_impersonation_tokens).to have_text('In')
expect(active_impersonation_tokens).to have_text('api')
expect(active_impersonation_tokens).to have_text('read_user')
+ expect(PersonalAccessTokensFinder.new(impersonation: true).execute.count).to equal(1)
end
end