- # Choose project
- within('.modal-dialog') do
- find('.selectable', text: 'Home').click
- find('button', text: 'Choose').click
+ page.assert_selector('a.disabled,button.disabled', text: 'Run') if pipeline_config['input_paths'].any?
+
+ # Choose input for the pipeline
+ pipeline_config['input_paths'].each do |look_for|
+ select_input look_for
+ end
+ wait_for_ajax
+
+ # All needed input are filled in. Run this pipeline now
+ find('a,button', text: 'Components').click
+ find('a,button', text: 'Run').click
+
+ # Pipeline is running. We have a "Stop" button instead now.
+ page.assert_selector 'a,button', text: 'Pause'
+
+ # Wait for pipeline run to complete
+ wait_until_page_has 'Complete', pipeline_config['max_wait_seconds']