Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 15:09:12 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 15:09:12 +0300
commit915b554773244a883790308fd9608f5f301edde0 (patch)
treebb16088bfcf586307fe0dc5fa7dc1d34a16cd20e /qa
parent41498864a083663fa29131f8af74c69e82213055 (diff)
Add specific views / selectors for QA runners page
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/settings/runners.rb16
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?