Commit d2649cd5 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-nightly-49-fix-admin-ldap-sync-spec' into 'master'

Fix admin_ldap_sync_spec

See merge request gitlab-org/gitlab-ee!9454
parents 2208b004 8d2dbb60
......@@ -79,9 +79,9 @@ module QA
end
def sign_in_using_ldap_credentials(user)
# Don't try to log-in if we're already logged-in
return if Page::Main::Menu.perform do |page|
page.has_personal_area?(wait: 0)
# Log out if already logged in
Page::Main::Menu.perform do |menu|
menu.sign_out if menu.has_personal_area?(wait: 0)
end
using_wait_time 0 do
......
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