summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/settings/runners.rb
blob: ac93c3efddd2d2f1ccfc0f8b6b7ea6a95967a9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module QA
  module Page
    module Project
      module Settings
        class Runners < Page::Base
          def registration_token
            find('code#registration_token').text
          end

          def coordinator_address
            # TODO, this needs a specific ID or QA class
            #
            all('code').first.text
          end

          def has_online_runner?
            page.has_css?('.runner-status-online')
          end
        end
      end
    end
  end
end