setup do
need_javascript
+ Rails.configuration.anonymous_user_token = api_fixture('api_client_authorizations')['anonymous']['api_token']
end
PUBLIC_PROJECT = "/projects/#{api_fixture('groups')['anonymously_accessible_project']['uuid']}"
end
end
- test "visit non-public project as anonymous when anonymous browsing is enabled and expect page not found" do
- visit "/projects/#{api_fixture('groups')['aproject']['uuid']}"
- assert_text 'Not Found'
- end
-
- test "anonymous user clicking on topnav sees login page" do
- visit PUBLIC_PROJECT
-
- # click on topnav
- click_link 'workbench:test'
- assert_text 'Please log in'
- end
-
test "selection actions when anonymous user accesses shared project" do
visit PUBLIC_PROJECT