Commit dcc3d4a8 authored by Tiffany Rea's avatar Tiffany Rea

Wait for first pipeline to be created

parent fad53f36
...@@ -42,7 +42,7 @@ module QA ...@@ -42,7 +42,7 @@ module QA
before do before do
Flow::Login.sign_in Flow::Login.sign_in
project.visit! project.visit!
Support::Waiter.wait_until { project.pipelines.first[:status] == 'success' } Support::Waiter.wait_until { !project.pipelines.empty? && project.pipelines.first[:status] == 'success' }
Page::Project::Menu.perform(&:go_to_pipeline_editor) Page::Project::Menu.perform(&:go_to_pipeline_editor)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment