X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6e7c96b2bdf0498028bf6ee3902289e81ec1f2d7..6e76e3322d66f609dabcd34c98cba34bd739e089:/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 7d3dfabd64..aabbf00dc2 100644 --- a/apps/workbench/test/integration/anonymous_access_test.rb +++ b/apps/workbench/test/integration/anonymous_access_test.rb @@ -19,9 +19,12 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest 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' + within('.dropdown-menu') do + assert_selector 'a', text: 'Search all projects' + assert_selector "a[href=\"/projects/public\"]", text: 'Browse public projects' + assert_selector 'a', text: 'Add a new project' + assert_selector 'li[class="dropdown-header"]', text: 'My projects' + end else assert_text 'indicate that you have read and accepted the user agreement' end