1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 require 'integration_helper'
7 class PipelineTemplatesTest < ActionDispatch::IntegrationTest
8 test "JSON popup available for strange components" do
10 uuid = api_fixture("pipeline_templates")["components_is_jobspec"]["uuid"]
11 visit page_with_token("active", "/pipeline_templates/#{uuid}")
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")