diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-22 22:51:36 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-20 15:04:52 +0900 |
commit | 3f66d3bd63a187abd90f2e640d8f50e8d4d7422c (patch) | |
tree | 4de4b0472fc0ce151dada40ada4ab0a4f536f735 /spec | |
parent | 1540cc434b66e32f723fff5de3fbc2f7e9480e0b (diff) | |
download | gitlab-ce-3f66d3bd63a187abd90f2e640d8f50e8d4d7422c.tar.gz |
Add coordinator url to admin area runner page
Use partial and shring same UI
Swap two. Like the project runner section.
Fix tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_runners_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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' |