Commit 7c179bf3 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'qa-268-fix-pipeline-spec' into 'master'

Fix default wait argument in QA Pipelines spec

Closes gitlab-qa#268

See merge request gitlab-org/gitlab-ce!19517
parents 95b3e51f d3659575
......@@ -24,10 +24,10 @@ module QA::Page
end
end
def has_build?(name, status: :success, wait:)
def has_build?(name, status: :success, wait: nil)
within('.pipeline-graph') do
within('.ci-job-component', text: name) do
has_selector?(".ci-status-icon-#{status}", wait: wait)
has_selector?(".ci-status-icon-#{status}", { wait: wait }.compact)
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