From d104886f95ab9bf0712873c809410b34f8bed031 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Wed, 8 Jun 2022 15:54:26 -0300 Subject: [PATCH] 19177: Fixes tests. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- apps/workbench/test/integration/collections_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/workbench/test/integration/collections_test.rb b/apps/workbench/test/integration/collections_test.rb index 1edfc10505..4d6489d4aa 100644 --- a/apps/workbench/test/integration/collections_test.rb +++ b/apps/workbench/test/integration/collections_test.rb @@ -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}") - assert_no_selector 'input', text: 'Create sharing link' + assert_no_selector 'div#sharing-button' 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}") - 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) -- 2.30.2