diff options
Diffstat (limited to 'qa/qa/page/project/pipeline/index.rb')
-rw-r--r-- | qa/qa/page/project/pipeline/index.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qa/qa/page/project/pipeline/index.rb b/qa/qa/page/project/pipeline/index.rb index f7c5d149593..d088ba76bc0 100644 --- a/qa/qa/page/project/pipeline/index.rb +++ b/qa/qa/page/project/pipeline/index.rb @@ -26,11 +26,15 @@ module QA end def wait_for_latest_pipeline_succeeded - wait_for_latest_pipeline_status { has_text?('passed') } + wait_for_latest_pipeline_status { has_selector?(".ci-status-icon-success") } end def wait_for_latest_pipeline_completed - wait_for_latest_pipeline_status { has_text?('passed') || has_text?('failed') } + wait_for_latest_pipeline_status { has_selector?(".ci-status-icon-success") || has_selector?(".ci-status-icon-failed") } + end + + def wait_for_latest_pipeline_skipped + wait_for_latest_pipeline_status { has_text?('skipped') } end def wait_for_latest_pipeline_status |