class PipelineTest < DiagnosticsTest
pipelines_to_test = Rails.configuration.pipelines_to_test.andand.keys
setup do
class PipelineTest < DiagnosticsTest
pipelines_to_test = Rails.configuration.pipelines_to_test.andand.keys
setup do
visit_page_with_token 'active'
pipeline_config = Rails.configuration.pipelines_to_test[pipeline_to_test]
# Search for tutorial template
visit_page_with_token 'active'
pipeline_config = Rails.configuration.pipelines_to_test[pipeline_to_test]
# Search for tutorial template
within('.navbar-fixed-top') do
page.find_field('search').set pipeline_config['template_uuid']
page.find('.glyphicon-search').click
end
# Run the pipeline
within('.navbar-fixed-top') do
page.find_field('search').set pipeline_config['template_uuid']
page.find('.glyphicon-search').click
end
# Run the pipeline
- find('a,button', text: 'Run').click
+ assert_triggers_dom_event 'shown.bs.modal' do
+ find('a,button', text: 'Run').click
+ end
find('a,button', text: 'Run').click
# Pipeline is running. We have a "Stop" button instead now.
find('a,button', text: 'Run').click
# Pipeline is running. We have a "Stop" button instead now.