1 require 'integration_helper'
3 class PipelineTemplatesTest < ActionDispatch::IntegrationTest
4 test "JSON popup available for strange components" do
5 Capybara.current_driver = Capybara.javascript_driver
6 uuid = api_fixture("pipeline_templates")["components_is_jobspec"]["uuid"]
7 visit page_with_token("active", "/pipeline_templates/#{uuid}")
9 assert(page.has_no_text?("script_parameters"),
10 "components JSON visible without popup")
11 click_on "Show components JSON"
12 assert(page.has_text?("script_parameters"),
13 "components JSON not found")