Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / test / integration / pipeline_templates_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'integration_helper'
6
7 class PipelineTemplatesTest < ActionDispatch::IntegrationTest
8   test "JSON popup available for strange components" do
9     need_javascript
10     uuid = api_fixture("pipeline_templates")["components_is_jobspec"]["uuid"]
11     visit page_with_token("active", "/pipeline_templates/#{uuid}")
12     click_on "Components"
13     assert(page.has_no_text?("script_parameters"),
14            "components JSON visible without popup")
15     click_on "Show components JSON"
16     assert(page.has_text?("script_parameters"),
17            "components JSON not found")
18   end
19
20 end