diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 18:08:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 18:08:58 +0000 |
commit | 1ca9950d5f890cd8f185e1eda158b969a7244fe2 (patch) | |
tree | 6f62715938a4b2b001705c51c697609a8e0850ae /qa | |
parent | bcc77054ee9aefd1e332e04a4189390fd5a3112e (diff) | |
download | gitlab-ce-1ca9950d5f890cd8f185e1eda158b969a7244fe2.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa.rb | 1 | ||||
-rw-r--r-- | qa/qa/vendor/jenkins/page/job.rb | 23 |
2 files changed, 24 insertions, 0 deletions
@@ -469,6 +469,7 @@ module QA autoload :Configure, 'qa/vendor/jenkins/page/configure' autoload :NewCredentials, 'qa/vendor/jenkins/page/new_credentials' autoload :NewJob, 'qa/vendor/jenkins/page/new_job' + autoload :Job, 'qa/vendor/jenkins/page/job' autoload :ConfigureJob, 'qa/vendor/jenkins/page/configure_job' end end diff --git a/qa/qa/vendor/jenkins/page/job.rb b/qa/qa/vendor/jenkins/page/job.rb new file mode 100644 index 00000000000..498ce6041b8 --- /dev/null +++ b/qa/qa/vendor/jenkins/page/job.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +require 'capybara/dsl' + +module QA + module Vendor + module Jenkins + module Page + class Job < Page::Base + attr_accessor :job_name + + def path + "/job/#{@job_name}" + end + + def has_successful_build? + page.has_text?("Last successful build") + end + end + end + end + end +end |