summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-07-28 12:59:03 +1000
committerSimon Knox <psimyn@gmail.com>2017-07-28 12:59:03 +1000
commitafdedcc7f014429b5e975bb1653731a1c5462023 (patch)
tree94ffd80bdb3438c9ce182a178992b74ad3691fae
parentcf51d5a3948c8d0e7c1b9224fc7eaa5fd36531b3 (diff)
downloadgitlab-ce-afdedcc7f014429b5e975bb1653731a1c5462023.tar.gz
wait after clicking for execute to complete35643-impersonate-spec
-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 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