Commit 7fce1599 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-nightly-95-fix-ldap-specs' into 'master'

Fix Group LDAP Sync specs

See merge request gitlab-org/gitlab-ee!10855
parents 10fdaecd feb36ca9
......@@ -14,9 +14,14 @@ 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
Page::Main::Menu.perform(&:sign_out)
Page::Main::Menu.perform do |menu|
menu.sign_out if menu.has_personal_area?
end
Runtime::Browser.visit(:gitlab, Page::Main::Login)
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)
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