projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
5493: test uncovered an issue with getting_started_shown handling; fixed it.
[arvados.git]
/
apps
/
workbench
/
test
/
integration
/
anonymous_access_test.rb
diff --git
a/apps/workbench/test/integration/anonymous_access_test.rb
b/apps/workbench/test/integration/anonymous_access_test.rb
index b51730bd953958e4713408edc447c427098eaa0d..0fb21b2d2f063530d0d175e2229c46d35de70408 100644
(file)
--- a/
apps/workbench/test/integration/anonymous_access_test.rb
+++ b/
apps/workbench/test/integration/anonymous_access_test.rb
@@
-22,6
+22,7
@@
class AnonymousAccessTest < ActionDispatch::IntegrationTest
assert_text 'indicate that you have read and accepted the user agreement'
end
within('.navbar-fixed-top') do
assert_text 'indicate that you have read and accepted the user agreement'
end
within('.navbar-fixed-top') do
+ assert_selector 'a', text: Rails.configuration.site_name.downcase
assert_selector 'a', text: "#{user['email']}"
find('a', text: "#{user['email']}").click
within('.dropdown-menu') do
assert_selector 'a', text: "#{user['email']}"
find('a', text: "#{user['email']}").click
within('.dropdown-menu') do
@@
-31,6
+32,8
@@
class AnonymousAccessTest < ActionDispatch::IntegrationTest
else # anonymous
assert_text 'Unrestricted public data'
within('.navbar-fixed-top') do
else # anonymous
assert_text 'Unrestricted public data'
within('.navbar-fixed-top') do
+ assert_text Rails.configuration.site_name.downcase
+ assert_no_selector 'a', text: Rails.configuration.site_name.downcase
assert_selector 'a', text: 'Log in'
end
end
assert_selector 'a', text: 'Log in'
end
end