- [
- ['All pipelines', 'Pipeline in publicly accessible project'],
- ['All jobs', 'job submitted'],
- ['All collections', 'GNU_General_Public_License,_version_3.pdf'],
- ].each do |selector, expectation|
- test "verify dashboard when anonymous user accesses shared project and click #{selector}" do
- visit_publicly_accessible_project
-
- # go to dashboard
- click_link 'You are viewing public data'
- assert_text 'Active pipelines'
-
- assert_no_selector 'a', text: 'Run a pipeline'
- assert_selector 'a', text: selector
- click_link selector
- assert_text expectation
- end
- end
-