Commit acaf13d6 authored by Shinya Maeda's avatar Shinya Maeda

Add an id for the tag(#registration_token). Wrap long lines.

parent 03c72d71
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
method: :put, class: 'btn btn-default', method: :put, class: 'btn btn-default',
data: { confirm: _("Are you sure you want to reset registration token?") } data: { confirm: _("Are you sure you want to reset registration token?") }
= render partial: 'ci/runner/how_to_setup_runner', locals: {registration_token: current_application_settings.runners_registration_token, type: 'shared'} = render partial: 'ci/runner/how_to_setup_runner',
locals: { registration_token: current_application_settings.runners_registration_token,
type: 'shared' }
.append-bottom-20.clearfix .append-bottom-20.clearfix
.pull-left .pull-left
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%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= root_url(only_path: false)
%li %li#registration_token
= _("Use the following registration token during setup:") = _("Use the following registration token during setup:")
%code= registration_token %code= registration_token
%li %li
......
%h3 Specific Runners %h3 Specific Runners
= render partial: 'ci/runner/how_to_setup_runner', locals: {registration_token: @project.runners_token, type: 'specific'} = render partial: 'ci/runner/how_to_setup_runner',
locals: { registration_token: @project.runners_token,
type: 'specific' }
- if @project_runners.any? - if @project_runners.any?
%h4.underlined-title Runners activated for this project %h4.underlined-title Runners activated for this project
......
...@@ -163,11 +163,11 @@ describe "Admin Runners" do ...@@ -163,11 +163,11 @@ describe "Admin Runners" do
end end
it 'has a registration token' do it 'has a registration token' do
expect(page.find('.help-callout li:nth-of-type(3)')).to have_content(token) expect(page.find('#registration_token')).to have_content(token)
end end
describe 'reload registration token' do describe 'reload registration token' do
let(:page_token) { find('.help-callout li:nth-of-type(3) code').text } let(:page_token) { find('#registration_token code').text }
before do before do
click_button 'Reset runners registration token' click_button 'Reset runners registration token'
......
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