Commit afdedcc7 authored by Simon Knox's avatar Simon Knox 🐂

wait after clicking for execute to complete

parent cf51d5a3
Pipeline #10298905 passed with stages
in 74 minutes and 31 seconds
......@@ -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 { 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( true).execute.count).to equal(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment