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

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
logout = $b.a(:class => "button", :text => "(logout)")
if logout.present?
Watir::Wait.until(30) {$b.execute_script("return") == 0}
Supports Markdown
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