Commit a41b780b authored by Anastasia McDonald's avatar Anastasia McDonald

Merge branch 'ml-wait-for-pipeline' into 'master'

Wait for pipeline before checking status

See merge request gitlab-org/gitlab!79800
parents 2abed3eb 1093e6e8
......@@ -91,7 +91,7 @@ module QA
merge_request = merge_request.reload!
# Don't try to click MWPS if the MR is merged or the pipeline is complete
break if merge_request.state == 'merged' || project.pipelines.last[:status] == 'success'
break if merge_request.state == 'merged' || mr.wait_until { project.pipelines.last }[:status] == 'success'
# Try to click MWPS if this is a transient test, or if the MWPS button is visible,
# otherwise reload the page and retry
......
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