projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20032: Fix unnecessary race in test.
[arvados.git]
/
apps
/
workbench
/
test
/
integration
/
logins_test.rb
diff --git
a/apps/workbench/test/integration/logins_test.rb
b/apps/workbench/test/integration/logins_test.rb
index f079fbb8f1ce39eb4d88e33f232c3f8796dce89c..3c6ab7c7436e1ddb06621a01136ba85673ec78f2 100644
(file)
--- a/
apps/workbench/test/integration/logins_test.rb
+++ b/
apps/workbench/test/integration/logins_test.rb
@@
-17,10
+17,7
@@
class LoginsTest < ActionDispatch::IntegrationTest
test "trying to use expired token redirects to login page" do
visit page_with_token('expired_trustedclient')
test "trying to use expired token redirects to login page" do
visit page_with_token('expired_trustedclient')
- buttons = all("
a
.btn", text: /Log in/)
+ buttons = all("
button
.btn", text: /Log in/)
assert_equal(1, buttons.size, "Failed to find one login button")
assert_equal(1, buttons.size, "Failed to find one login button")
- login_link = buttons.first[:href]
- assert_match(%r{//[^/]+/login}, login_link)
- assert_no_match(/\bapi_token=/, login_link)
end
end
end
end