Commit 915b5547 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add specific views / selectors for QA runners page

parent 41498864
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= (_("(checkout the %{link} for information on how to install it).") % { link: link }).html_safe = (_("(checkout the %{link} for information on how to install it).") % { link: link }).html_safe
%li %li
= _("Specify the following URL during the Runner setup:") = _("Specify the following URL during the Runner setup:")
%code= root_url(only_path: false) %code#coordinator_address= root_url(only_path: false)
%li %li
= _("Use the following registration token during setup:") = _("Use the following registration token during setup:")
%code#registration_token= registration_token %code#registration_token= registration_token
......
...@@ -3,14 +3,24 @@ module QA ...@@ -3,14 +3,24 @@ module QA
module Project module Project
module Settings module Settings
class Runners < Page::Base 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 def registration_token
find('code#registration_token').text find('code#registration_token').text
end end
def coordinator_address def coordinator_address
# TODO, this needs a specific ID or QA class find('code#coordinator_address').text
#
all('code').first.text
end end
def has_online_runner? def has_online_runner?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment