Commit 8d2dbb60 authored by Sanad Liaquat's avatar Sanad Liaquat

Logout if already logged in

parent c7461be9
......@@ -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