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
This commit is contained in:
Grzegorz Bizon 2018-06-07 10:41:10 +00:00
commit 7c179bf39e

View file

@ -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