Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / test / integration / pipeline_templates_test.rb
index 56d6f4a009ada155f3cf6eeac3f9e2fcaa33be15..1fc4427a38ad9ea67ad364d27044dea65c07e63f 100644 (file)
@@ -1,8 +1,12 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'integration_helper'
 
 class PipelineTemplatesTest < ActionDispatch::IntegrationTest
   test "JSON popup available for strange components" do
-    Capybara.current_driver = Capybara.javascript_driver
+    need_javascript
     uuid = api_fixture("pipeline_templates")["components_is_jobspec"]["uuid"]
     visit page_with_token("active", "/pipeline_templates/#{uuid}")
     click_on "Components"
@@ -13,34 +17,4 @@ class PipelineTemplatesTest < ActionDispatch::IntegrationTest
            "components JSON not found")
   end
 
-  test "pipeline template description" do
-    Capybara.current_driver = Capybara.javascript_driver
-    visit page_with_token("active", "/pipeline_templates")
-
-    # go to Two Part pipeline template
-    within first('tr', text: 'Two Part Pipeline Template') do
-      find(".fa-gears").click
-    end
-
-    # edit template description
-    within('.arv-description-as-subtitle') do
-      find('.fa-pencil').click
-      find('.editable-input textarea').set('*Textile description for pipeline template* - "Go to dashboard":/')
-      find('.editable-submit').click
-    end
-    wait_for_ajax
-
-    # Verfiy edited description
-    assert page.has_no_text? '*Textile description for pipeline template*'
-    assert page.has_text? 'Textile description for pipeline template'
-    assert page.has_link? 'Go to dashboard'
-    click_link 'Go to dashboard'
-    assert page.has_text? 'My projects'
-    assert page.has_text? 'Projects shared with me'
-
-    # again visit recent templates page and verify edited description
-    visit page_with_token("active", "/pipeline_templates")
-    assert page.has_no_text? '*Textile description for pipeline template*'
-    assert page.has_text? 'Textile description for pipeline template'
-  end
 end