Commit 187d8110 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'cherry-pick-41db362c' into 'master'

Merge branch '35643-impersonate-spec' into '9-4-stable-patch-2'

See merge request !13170
......@@ -32,11 +32,13 @@ def no_personal_access_tokens_message
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
......
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