Add an id for the tag(#registration_token). Wrap long lines.
This commit is contained in:
parent
03c72d71bb
commit
acaf13d6f3
|
@ -35,7 +35,9 @@
|
|||
method: :put, class: 'btn btn-default',
|
||||
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
|
||||
.pull-left
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
%li
|
||||
= _("Specify the following URL during the Runner setup:")
|
||||
%code= root_url(only_path: false)
|
||||
%li
|
||||
%li#registration_token
|
||||
= _("Use the following registration token during setup:")
|
||||
%code= registration_token
|
||||
%li
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
%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?
|
||||
%h4.underlined-title Runners activated for this project
|
||||
|
|
|
@ -163,11 +163,11 @@ describe "Admin Runners" do
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
click_button 'Reset runners registration token'
|
||||
|
|
Loading…
Reference in New Issue