diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-06-07 09:55:31 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-06-07 10:09:20 +0200 |
commit | d3659575469bb8a7a5f6bd4ecb86de88d5c2672c (patch) | |
tree | a2a01c4617bc0c6202d39e18c3da4a7a751c848b | |
parent | 10fd34ba0323bc90af3665ad6fcf5011a112d062 (diff) | |
download | gitlab-ce-qa-268-fix-pipeline-spec.tar.gz |
Fix default wait argument in QA Pipelines specqa-268-fix-pipeline-spec
-rw-r--r-- | qa/qa/page/project/pipeline/show.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/page/project/pipeline/show.rb b/qa/qa/page/project/pipeline/show.rb index de849b3eee8..babc0079f3f 100644 --- a/qa/qa/page/project/pipeline/show.rb +++ b/qa/qa/page/project/pipeline/show.rb @@ -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 |