diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-28 13:07:46 +0300 |
---|---|---|
committer | Simon Knox <simon@gitlab.com> | 2017-07-29 00:04:48 +0300 |
commit | d783dcd0f2d882e6f7b768209ec881be6ede4732 (patch) | |
tree | e3519825554bb661608a61eaafe1b0796c44447f /spec | |
parent | da967803cce971b184873dbe5d65d07215de0b0a (diff) |
Merge branch '35643-impersonate-spec' into '9-4-stable-patch-2'
Resolve "Impersonation Tokens creation spec failure in admin_users_impersonation_tokens_spec.rb"
See merge request !13145
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_users_impersonation_tokens_spec.rb | 4 |
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 |