From 3f66d3bd63a187abd90f2e640d8f50e8d4d7422c Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Mon, 22 May 2017 22:51:36 +0900 Subject: Add coordinator url to admin area runner page Use partial and shring same UI Swap two. Like the project runner section. Fix tests --- spec/features/admin/admin_runners_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'spec/features/admin') diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index b06e7e5037c..c8164d068e6 100644 --- a/spec/features/admin/admin_runners_spec.rb +++ b/spec/features/admin/admin_runners_spec.rb @@ -19,7 +19,7 @@ describe "Admin Runners" do end it 'has all necessary texts' do - expect(page).to have_text "To register a new Runner" + expect(page).to have_text "How to setup" expect(page).to have_text "Runners with last contact more than a minute ago: 1" end @@ -163,12 +163,11 @@ describe "Admin Runners" do end it 'has a registration token' do - expect(page).to have_content("Registration token is #{token}") - expect(page).to have_selector('#runners-token', text: token) + expect(page.find('.help-callout li:nth-of-type(3)')).to have_content(token) end describe 'reload registration token' do - let(:page_token) { find('#runners-token').text } + let(:page_token) { find('.help-callout li:nth-of-type(3) code').text } before do click_button 'Reset runners registration token' -- cgit v1.2.3