Commit 0b58c1d4 authored by Sanad Liaquat's avatar Sanad Liaquat

Ensure logout as an LDAP user before logging in as admin

parent 13ec1bcb
......@@ -13,7 +13,8 @@ module QA
# Create an admin personal access token and use it for the remaining API calls
@original_personal_access_token = Runtime::Env.personal_access_token
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Menu.perform(&:sign_out)
Page::Main::Login.perform(&:sign_in_using_admin_credentials)
Runtime::Env.personal_access_token = Resource::PersonalAccessToken.fabricate!.access_token
Page::Main::Menu.perform(&:sign_out)
......
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