diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-15 06:06:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-15 06:06:13 +0000 |
commit | 3fe34368770022c88fd89c8df58b39bf0789e646 (patch) | |
tree | 0b8aa07f8b17e4565c491383b5b8b6cc728a1e4a /qa/qa/page/project/pipeline/index.rb | |
parent | 41d446ba3f0518097eb350b142ecfbeeb6be83e6 (diff) | |
download | gitlab-ce-3fe34368770022c88fd89c8df58b39bf0789e646.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/project/pipeline/index.rb')
-rw-r--r-- | qa/qa/page/project/pipeline/index.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qa/qa/page/project/pipeline/index.rb b/qa/qa/page/project/pipeline/index.rb index fae7818f871..b52f3e99a36 100644 --- a/qa/qa/page/project/pipeline/index.rb +++ b/qa/qa/page/project/pipeline/index.rb @@ -7,6 +7,10 @@ module QA::Page element :pipeline_link, 'class="js-pipeline-url-link' # rubocop:disable QA/ElementWithPattern end + view 'app/assets/javascripts/pipelines/components/pipelines_table_row.vue' do + element :pipeline_commit_status + end + def click_on_latest_pipeline css = '.js-pipeline-url-link' @@ -16,6 +20,14 @@ module QA::Page link.click end + + def wait_for_latest_pipeline_success + wait(reload: false, max: 300) do + within_element_by_index(:pipeline_commit_status, 0) do + has_text?('passed') + end + end + end end end end |