diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-07-20 20:04:15 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-07-20 20:04:15 +0000 |
commit | 729ac897fd98b7cadee6af3f764a2efc4ecde43e (patch) | |
tree | a01f4ce3f4645cece558ce6c65c5f6375452d888 /spec | |
parent | e59c1f7954d5272f4fa56fafb302be7afba53333 (diff) | |
parent | 2b8c46fe1dedd1687e1871a8b4a9892ee0ca070f (diff) | |
download | gitlab-ce-729ac897fd98b7cadee6af3f764a2efc4ecde43e.tar.gz |
Merge branch '20817-please-add-coordinator-url-to-admin-area-runner-page' into 'master'
Add coordinator url to admin area runner page
Closes #20817
See merge request !11603
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_runners_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index b06e7e5037c..46bab3763cc 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 @@ -54,7 +54,7 @@ describe "Admin Runners" do end it 'has all necessary texts including no runner message' 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: 0" expect(page).to have_text 'No runners found' 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('#registration_token')).to have_content(token) end describe 'reload registration token' do - let(:page_token) { find('#runners-token').text } + let(:page_token) { find('#registration_token').text } before do click_button 'Reset runners registration token' |