X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/05b38a78504bfa8955a70d50fa3c073206f6e780..9f1ce358ac564abf62965cccf2bf3afa3bcfef95:/apps/workbench/test/integration/projects_test.rb diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb index 1c18a436fd..27eac8ab56 100644 --- a/apps/workbench/test/integration/projects_test.rb +++ b/apps/workbench/test/integration/projects_test.rb @@ -737,4 +737,27 @@ class ProjectsTest < ActionDispatch::IntegrationTest assert_no_selector 'li', text: 'Unrestricted public data' end end + + [ + ['Two Part Pipeline Template', 'part-one', 'Provide a value for the following'], + ['Workflow with input specifications', 'this workflow has inputs specified', 'Provide a value for the following'], + ].each do |template_name, preview_txt, process_txt| + test "run a process using template #{template_name} in a project" do + project = api_fixture('groups')['aproject'] + visit page_with_token 'active', '/projects/' + project['uuid'] + + find('.btn', text: 'Run a process').click + + # in the chooser, verify preview and click Next button + within('.modal-dialog') do + find('.selectable', text: template_name).click + assert_text preview_txt + find('.btn', text: 'Next: choose inputs').click + end + + # in the process page now + assert_text process_txt + assert_text project['name'] + end + end end