Commit 217bdccd authored by Ryan Herbert's avatar Ryan Herbert

test_login.rb logout if needed

since the test order is random, the successful login test can be
executed before the failure. So we need to logout if we are already
logged between the tests
parent 6996851b
Pipeline #35917 passed with stages
in 4 minutes and 18 seconds
......@@ -8,6 +8,11 @@ class TestLogin < BrowserTest
if not defined? $b
set_browser("http://localhost/browser")
end
logout = $b.a(:class => "button", :text => "(logout)")
if logout.present?
logout.click
Watir::Wait.until(30) {$b.execute_script("return jQuery.active") == 0}
end
end
=begin
......
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