[arvados] updated: 2.1.0-2595-g2ed8d670a
git repository hosting
git at public.arvados.org
Wed Jun 8 13:22:32 UTC 2022
Summary of changes:
apps/workbench/test/integration/collections_test.rb | 8 ++++++++
1 file changed, 8 insertions(+)
via 2ed8d670a5d6f93eed57cb14138323cc835e027f (commit)
from 27ba0e2e0733ddaeb7437dc4194f684306636635 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 2ed8d670a5d6f93eed57cb14138323cc835e027f
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Wed Jun 8 10:21:52 2022 -0300
19177: Adds test to wb1 for sharing link button hideability.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/apps/workbench/test/integration/collections_test.rb b/apps/workbench/test/integration/collections_test.rb
index e7b27fff8..1edfc1050 100644
--- a/apps/workbench/test/integration/collections_test.rb
+++ b/apps/workbench/test/integration/collections_test.rb
@@ -41,11 +41,19 @@ class CollectionsTest < ActionDispatch::IntegrationTest
send(link_assertion, all("a").select { |a| a[:href] =~ link_regexp })
end
+ test "Hides sharing link button when configured to do so" do
+ 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'
+ end
+
test "creating and uncreating a sharing link" do
coll_uuid = api_fixture("collections", "collection_owned_by_active", "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'
within "#sharing-button" do
check_sharing(:on, download_link_re)
check_sharing(:off, download_link_re)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list