X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/783343e5aca00f730315d943cecf74e4277a38e7..34389f5d6803e4ae51c09d116baf2d75ef546b10:/apps/workbench/test/integration/pipeline_instances_test.rb diff --git a/apps/workbench/test/integration/pipeline_instances_test.rb b/apps/workbench/test/integration/pipeline_instances_test.rb index a85fd996fc..5071fb4766 100644 --- a/apps/workbench/test/integration/pipeline_instances_test.rb +++ b/apps/workbench/test/integration/pipeline_instances_test.rb @@ -18,18 +18,17 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest find('a,button', text: 'Run').click end + # project chooser + within('.modal-dialog') do + find('.selectable', text: 'A Project').click + find('button', text: 'Choose').click + end + # This pipeline needs input. So, Run should be disabled page.assert_selector 'a.disabled,button.disabled', text: 'Run' instance_page = current_path - # put this pipeline instance in "A Project" - find('button', text: 'Choose a project...').click - within('.modal-dialog') do - find('.selectable', text: 'A Project').click - find('button', text: 'Move').click - end - # Go over to the collections page and select something visit '/collections' within('tr', text: 'GNU_General_Public_License') do @@ -45,7 +44,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest within('.modal-dialog') do find('.btn', text: 'Add').click end - + find('tr[data-kind="arvados#pipelineInstance"]', text: 'New pipeline instance'). find('a', text: 'Show'). click @@ -57,7 +56,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest click within('.modal-dialog') do - find('span', text: 'foo_tag').click + first('span', text: 'foo_tag').click find('button', text: 'OK').click end @@ -114,7 +113,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest click within('.modal-dialog') do - find('span', text: 'foo_tag').click + first('span', text: 'foo_tag').click find('button', text: 'OK').click end