summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 13:09:12 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-01-23 13:09:12 +0100
commit915b554773244a883790308fd9608f5f301edde0 (patch)
treebb16088bfcf586307fe0dc5fa7dc1d34a16cd20e
parent41498864a083663fa29131f8af74c69e82213055 (diff)
downloadgitlab-ce-915b554773244a883790308fd9608f5f301edde0.tar.gz
Add specific views / selectors for QA runners page
-rw-r--r--app/views/ci/runner/_how_to_setup_runner.html.haml2
-rw-r--r--qa/qa/page/project/settings/runners.rb16
2 files changed, 14 insertions, 4 deletions
diff --git a/app/views/ci/runner/_how_to_setup_runner.html.haml b/app/views/ci/runner/_how_to_setup_runner.html.haml
index b75dab0acc5..8db7727b80c 100644
--- a/app/views/ci/runner/_how_to_setup_runner.html.haml
+++ b/app/views/ci/runner/_how_to_setup_runner.html.haml
@@ -8,7 +8,7 @@
= (_("(checkout the %{link} for information on how to install it).") % { link: link }).html_safe
%li
= _("Specify the following URL during the Runner setup:")
- %code= root_url(only_path: false)
+ %code#coordinator_address= root_url(only_path: false)
%li
= _("Use the following registration token during setup:")
%code#registration_token= registration_token
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?