diff options
author | Simon Knox <psimyn@gmail.com> | 2017-07-28 12:59:03 +1000 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-07-28 12:59:03 +1000 |
commit | afdedcc7f014429b5e975bb1653731a1c5462023 (patch) | |
tree | 94ffd80bdb3438c9ce182a178992b74ad3691fae | |
parent | cf51d5a3948c8d0e7c1b9224fc7eaa5fd36531b3 (diff) | |
download | gitlab-ce-35643-impersonate-spec.tar.gz |
wait after clicking for execute to complete35643-impersonate-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 cd7040891e9..f8f4ae6d1ef 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', feature: true, 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 |