summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/job/show.rb
blob: 21bda74efb2dbb2b1b347262eb921c59eea1066b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module QA::Page
  module Project::Job
    class Show < QA::Page::Base
      view 'app/views/projects/jobs/show.html.haml' do
        element :build_output, '.js-build-output'
      end

      def output
        css = '.js-build-output'

        wait(reload: false) do
          has_css?(css)
        end

        find(css).text
      end
    end
  end
end