From d3659575469bb8a7a5f6bd4ecb86de88d5c2672c Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Thu, 7 Jun 2018 09:55:31 +0200 Subject: Fix default wait argument in QA Pipelines spec --- qa/qa/page/project/pipeline/show.rb | 4 ++-- 1 file 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 -- cgit v1.2.1