# 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'
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
['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|