Commit 738bad8e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix CI/CD end-to-end tests by waiting for changes

parent 5520e3eb
......@@ -33,6 +33,7 @@ module QA
def wait_for_push
sleep 5
refresh
end
end
end
......
......@@ -15,8 +15,10 @@ module QA
end
Page::Project::Settings::CICD.perform do |settings|
settings.refresh
settings.expand_runners_settings do |page|
expect(page).to have_content(runner)
expect(page).to have_content(executor)
expect(page).to have_online_runner
end
end
......@@ -58,6 +60,8 @@ module QA
end
Page::Project::Show.act { wait_for_push }
expect(page).to have_content('Add .gitlab-ci.yml')
end
end
end
......@@ -11,10 +11,7 @@ module QA
push.commit_message = 'Add README.md'
end
Page::Project::Show.act do
wait_for_push
refresh
end
Page::Project::Show.act { wait_for_push }
expect(page).to have_content('README.md')
expect(page).to have_content('This is a test project')
......
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