# These tests don't do state-changing API calls. Save some time by
# skipping the database reset.
reset_api_fixtures :after_each_test, false
# These tests don't do state-changing API calls. Save some time by
# skipping the database reset.
reset_api_fixtures :after_each_test, false
assert_text 'indicate that you have read and accepted the user agreement'
end
within('.navbar-fixed-top') do
assert_text 'indicate that you have read and accepted the user agreement'
end
within('.navbar-fixed-top') do
assert(page.has_link?("notifications-menu"), 'no user menu')
page.find("#notifications-menu").click
within('.dropdown-menu') do
assert(page.has_link?("notifications-menu"), 'no user menu')
page.find("#notifications-menu").click
within('.dropdown-menu') do
- assert_text Rails.configuration.site_name.downcase
- assert_no_selector 'a', text: Rails.configuration.site_name.downcase
+ assert_text Rails.configuration.Workbench.SiteName.downcase
+ assert_no_selector 'a', text: Rails.configuration.Workbench.SiteName.downcase
assert_selector 'a', text: 'Log in'
assert_selector 'a', text: 'Browse public projects'
end
assert_selector 'a', text: 'Log in'
assert_selector 'a', text: 'Browse public projects'
end
magic = rand(2**512).to_s 36
owner = api_fixture('groups')['anonymously_accessible_project']['uuid']
col = upload_data_and_get_collection(magic, 'admin', "Hello\\040world.txt", owner)
magic = rand(2**512).to_s 36
owner = api_fixture('groups')['anonymously_accessible_project']['uuid']
col = upload_data_and_get_collection(magic, 'admin', "Hello\\040world.txt", owner)
if objects_readable
assert_selector 'a[href="#Log"]', text: 'Log'
assert_no_selector 'a[data-toggle="disabled"]', text: 'Log'
if objects_readable
assert_selector 'a[href="#Log"]', text: 'Log'
assert_no_selector 'a[data-toggle="disabled"]', text: 'Log'
assert_text 'Log unavailable'
end
find(:xpath, "//a[@href='#Log']").click
assert_text 'Log unavailable'
end
find(:xpath, "//a[@href='#Log']").click