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

Logout if already logged in

parent c7461be9
...@@ -79,9 +79,9 @@ module QA ...@@ -79,9 +79,9 @@ module QA
end end
def sign_in_using_ldap_credentials(user) def sign_in_using_ldap_credentials(user)
# Don't try to log-in if we're already logged-in # Log out if already logged in
return if Page::Main::Menu.perform do |page| Page::Main::Menu.perform do |menu|
page.has_personal_area?(wait: 0) menu.sign_out if menu.has_personal_area?(wait: 0)
end end
using_wait_time 0 do 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