Commit d9d8e5c4 authored by richard.chong's avatar richard.chong

Adds 3 attempts and a sleep interval of 3s to allow for widget to update

parent 8253bfc3
......@@ -63,6 +63,7 @@ module QA
it 'creates a pipeline with merged results', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1517' do
merge_request.visit!
Support::Retrier.retry_until(max_attempts: 3, sleep_interval: 3) do
Page::MergeRequest::Show.perform do |show|
expect(show).to have_pipeline_status('passed'), 'Expected the merge request pipeline to pass.'
......@@ -73,10 +74,12 @@ module QA
expect(show).to be_merged, "Expected content 'The changes were merged' but it did not appear."
end
end
end
it 'merges via a merge train', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1518' do
merge_request.visit!
Support::Retrier.retry_until(max_attempts: 3, sleep_interval: 3) do
Page::MergeRequest::Show.perform do |show|
expect(show).to have_pipeline_status('passed'), 'Expected the merge request pipeline to pass.'
......@@ -87,4 +90,5 @@ module QA
end
end
end
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