3036: Merge branch 'master' into 3036-mutable-collections
[arvados.git] / apps / workbench / test / integration / pipeline_templates_test.rb
1 require 'integration_helper'
2
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}")
8     click_on "Components"
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")
14   end
15 end