X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c3d4b399c57e711f0cd87c2178f873a688323967..27697133a18371d692d69569659dd522e7b0fbdd:/apps/workbench/test/integration/collections_test.rb diff --git a/apps/workbench/test/integration/collections_test.rb b/apps/workbench/test/integration/collections_test.rb index 8657aaa0e4..19720cb752 100644 --- a/apps/workbench/test/integration/collections_test.rb +++ b/apps/workbench/test/integration/collections_test.rb @@ -13,19 +13,17 @@ class CollectionsTest < ActionDispatch::IntegrationTest page.assert_no_selector "div[data-persistent-state='#{oldstate}']" end - ['/collections', '/users/welcome'].each do |path| - test "Flip persistent switch at #{path}" do - Capybara.current_driver = Capybara.javascript_driver - uuid = api_fixture('collections')['foo_file']['uuid'] - visit page_with_token('active', path) - within "tr[data-object-uuid='#{uuid}']" do - change_persist 'cache', 'persistent' - end - # Refresh page and make sure the change was committed. - visit current_path - within "tr[data-object-uuid='#{uuid}']" do - change_persist 'persistent', 'cache' - end + test "Flip persistent switch at /collections" do + Capybara.current_driver = Capybara.javascript_driver + uuid = api_fixture('collections')['foo_file']['uuid'] + visit page_with_token('active', '/collections') + within "tr[data-object-uuid='#{uuid}']" do + change_persist 'cache', 'persistent' + end + # Refresh page and make sure the change was committed. + visit current_path + within "tr[data-object-uuid='#{uuid}']" do + change_persist 'persistent', 'cache' end end