X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/45b556d1a204f694b69ca26d115cd6786ca585f3..0e57453d2b637a3d105d4e3d67031f3915f9d302:/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 18c5b7dfcb..8ac3a56cb4 100644 --- a/apps/workbench/test/integration/anonymous_access_test.rb +++ b/apps/workbench/test/integration/anonymous_access_test.rb @@ -18,13 +18,17 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest if user['is_active'] assert_text 'Unrestricted public data' assert_selector 'a', text: 'Projects' + page.find("#projects-menu").click + assert_selector 'a', text: 'Add a new project' + assert_selector 'a', text: 'Browse public projects' + assert page.has_text?('Projects shared with me'), 'Not found text - Project shared with me' else 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 + assert(page.has_link?("notifications-menu"), 'no user menu') + page.find("#notifications-menu").click within('.dropdown-menu') do assert_selector 'a', text: 'Log out' end @@ -35,6 +39,7 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest assert_text Rails.configuration.site_name.downcase assert_no_selector 'a', text: Rails.configuration.site_name.downcase assert_selector 'a', text: 'Log in' + assert_selector 'a', text: 'Browse public projects' end end end