Merge branch 'master' into 5417-not-start-pipeline-with-unreadable-inputs
[arvados.git] / apps / workbench / test / integration / anonymous_access_test.rb
index d1aea7111f4e04bafab2bccf8f57005638da9142..1b187e7b051e4ef5eff6427b8745f668ae3ed1ce 100644 (file)
@@ -247,6 +247,7 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest
     ['new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere', false],
     ['new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere', false, 'spectator'],
     ['new_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere', true, 'admin'],
+    ['new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere', false],
     ['new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere', false, 'spectator'],
     ['new_pipeline_in_publicly_accessible_project_with_dataclass_file_and_other_objects_elsewhere', true, 'admin'],
   ].each do |fixture, objects_readable, user=nil|
@@ -276,9 +277,9 @@ class AnonymousAccessTest < ActionDispatch::IntegrationTest
       else
         assert_no_text 'This pipeline was created from'  # template is not readable
         input = object['components']['foo']['script_parameters']['input']['value']
-        input = input.gsub('/', '\\/')
         assert_no_selector 'a', text: input
         if user
+          input = input.gsub('/', '\\/')
           assert_text "One or more inputs provided are not readable"
           assert_selector "input[type=text][value=#{input}]"
           assert_selector 'a.disabled', text: 'Run'