19177: Fixes tests.
[arvados.git] / apps / workbench / test / integration / collections_test.rb
index 1edfc10505e0b1d321adaf9859a6847c59c95ad3..4d6489d4aa3e4b7639469904b9b588fb38ce2a08 100644 (file)
@@ -45,7 +45,7 @@ class CollectionsTest < ActionDispatch::IntegrationTest
     Rails.configuration.Workbench.DisableSharingURLsUI = true
     coll_uuid = api_fixture("collections", "collection_owned_by_active", "uuid")
     visit page_with_token("active_trustedclient", "/collections/#{coll_uuid}")
     Rails.configuration.Workbench.DisableSharingURLsUI = true
     coll_uuid = api_fixture("collections", "collection_owned_by_active", "uuid")
     visit page_with_token("active_trustedclient", "/collections/#{coll_uuid}")
-    assert_no_selector 'input', text: 'Create sharing link'
+    assert_no_selector 'div#sharing-button'
   end
 
   test "creating and uncreating a sharing link" do
   end
 
   test "creating and uncreating a sharing link" do
@@ -53,7 +53,7 @@ class CollectionsTest < ActionDispatch::IntegrationTest
     download_link_re =
       Regexp.new(Regexp.escape("/c=#{coll_uuid}/"))
     visit page_with_token("active_trustedclient", "/collections/#{coll_uuid}")
     download_link_re =
       Regexp.new(Regexp.escape("/c=#{coll_uuid}/"))
     visit page_with_token("active_trustedclient", "/collections/#{coll_uuid}")
-    assert_selector 'input', text: 'Create sharing link'
+    assert_selector 'div#sharing-button'
     within "#sharing-button" do
       check_sharing(:on, download_link_re)
       check_sharing(:off, download_link_re)
     within "#sharing-button" do
       check_sharing(:on, download_link_re)
       check_sharing(:off, download_link_re)