diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-23 13:09:12 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-23 13:09:12 +0100 |
commit | 915b554773244a883790308fd9608f5f301edde0 (patch) | |
tree | bb16088bfcf586307fe0dc5fa7dc1d34a16cd20e /qa | |
parent | 41498864a083663fa29131f8af74c69e82213055 (diff) | |
download | gitlab-ce-915b554773244a883790308fd9608f5f301edde0.tar.gz |
Add specific views / selectors for QA runners page
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/project/settings/runners.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/qa/qa/page/project/settings/runners.rb b/qa/qa/page/project/settings/runners.rb index ac93c3efddd..ff763402d98 100644 --- a/qa/qa/page/project/settings/runners.rb +++ b/qa/qa/page/project/settings/runners.rb @@ -3,14 +3,24 @@ module QA module Project module Settings class Runners < Page::Base + view 'app/views/ci/runner/_how_to_setup_runner.html.haml' do + element :registration_token, '%code#registration_token' + element :coordinator_address, '%code#coordinator_address' + end + + ## + # TODO, phase-out CSS classes from Ruby helpers. + # + view 'app/helpers/runners_helper.rb' do + element :runner_status, 'runner-status-#{status}' + end + 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 + find('code#coordinator_address').text end def has_online_runner? |