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