X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/91c467665ad493108b69c660d5424c77cce5668f..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 1e486d8fef..aabbf00dc2 100644 --- a/apps/workbench/test/integration/anonymous_access_test.rb +++ b/apps/workbench/test/integration/anonymous_access_test.rb @@ -18,6 +18,13 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest if user['is_active'] assert_text 'Unrestricted public data' assert_selector 'a', text: 'Projects' + page.find("#projects-menu").click + 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 @@ -35,6 +42,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 @@ -305,14 +313,4 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest end end end - - test "anonymous user accesses collection in shared project" do - visit "/collections/#{api_fixture('collections')['public_text_file']['uuid']}" - - # in collection page - assert_text 'Public Projects Unrestricted public data' - assert_text 'Hello world' - assert_text 'Content address' - assert_selector 'a', text: 'Provenance graph' - end end