X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/33515b84b0689a984c812c8bc3c0cd663baf9b55..e89251c160ae409f8af2f9ecae5ffb210ccd0a8d:/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 52819e1263..9f4ce692e5 100644 --- a/apps/workbench/test/integration/pipeline_instances_test.rb +++ b/apps/workbench/test/integration/pipeline_instances_test.rb @@ -299,7 +299,9 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest # Now re-run the pipeline if with_options - find('a,button', text: 'Re-run options').click + assert_triggers_dom_event 'shown.bs.modal' do + find('a,button', text: 'Re-run options').click + end within('.modal-dialog') do page.assert_selector 'a,button', text: 'Copy and edit inputs' page.assert_selector 'a,button', text: 'Run now' @@ -313,11 +315,6 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest find('a,button', text: 'Re-run with latest').click end - # Wait for the dialog to close. (Otherwise, the next assertion - # could fail while we're still looking at the source instance - # page, even if the correct behavior is about to happen.) - assert_no_selector 'body.modal-open' - # Verify that the newly created instance is created in the right # project. In case of project_viewer user, since the user cannot # write to the project, the pipeline should have been created in @@ -446,8 +443,7 @@ class PipelineInstancesTest < ActionDispatch::IntegrationTest ['admin', nil, 40, 200], ['admin', 'FUSE project', 1, 1], ['admin', 'pipeline_10', 2, 2], - ['active', 'containing at least two', 2, 100], # component description - ['admin', 'containing at least two', 2, 100], + ['active', 'containing at least two', 2, 100], ['active', nil, 10, 100], ['active', 'no such match', 0, 0], ].each do |user, search_filter, expected_min, expected_max|