summaryrefslogtreecommitdiff
path: root/qa/qa/vendor/jenkins/page/job.rb
blob: 498ce6041b801bbf39bc9b30f4a2e8ec83a9f9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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