X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c29fc69a571bc2e4a4e450a09d94adbb305633bd..7178ac911e7b160c1348da404b5aa07b9829d3c8:/apps/workbench/test/integration/pipeline_templates_test.rb diff --git a/apps/workbench/test/integration/pipeline_templates_test.rb b/apps/workbench/test/integration/pipeline_templates_test.rb index d131986d25..56d6f4a009 100644 --- a/apps/workbench/test/integration/pipeline_templates_test.rb +++ b/apps/workbench/test/integration/pipeline_templates_test.rb @@ -12,4 +12,35 @@ class PipelineTemplatesTest < ActionDispatch::IntegrationTest assert(page.has_text?("script_parameters"), "components JSON not found") end + + test "pipeline template description" do + Capybara.current_driver = Capybara.javascript_driver + visit page_with_token("active", "/pipeline_templates") + + # go to Two Part pipeline template + within first('tr', text: 'Two Part Pipeline Template') do + find(".fa-gears").click + end + + # edit template description + within('.arv-description-as-subtitle') do + find('.fa-pencil').click + find('.editable-input textarea').set('*Textile description for pipeline template* - "Go to dashboard":/') + find('.editable-submit').click + end + wait_for_ajax + + # Verfiy edited description + assert page.has_no_text? '*Textile description for pipeline template*' + assert page.has_text? 'Textile description for pipeline template' + assert page.has_link? 'Go to dashboard' + click_link 'Go to dashboard' + assert page.has_text? 'My projects' + assert page.has_text? 'Projects shared with me' + + # again visit recent templates page and verify edited description + visit page_with_token("active", "/pipeline_templates") + assert page.has_no_text? '*Textile description for pipeline template*' + assert page.has_text? 'Textile description for pipeline template' + end end