提交 acaf13d6 编写于 作者: S Shinya Maeda

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

上级 03c72d71
......@@ -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
......
%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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册