diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-21 19:09:06 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-02-23 19:26:51 +0300 |
commit | f2709915d7e90af4cc0aceb0f631e743b12112ba (patch) | |
tree | 00a66f0da20c2a96b1a176d9b25529de8c4bf012 /spec/features/runners_spec.rb | |
parent | 48b1455566a51f4dea6b3b86553d2f239266a1f9 (diff) |
Add a button to deploy a runner to a Kubernetes cluster in the settings page
Diffstat (limited to 'spec/features/runners_spec.rb')
-rw-r--r-- | spec/features/runners_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index aec9de6c7ca..df65c2d2f83 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -7,6 +7,20 @@ feature 'Runners' do sign_in(user) end + context 'when user opens runners page' do + given(:project) { create(:project) } + + background do + project.add_master(user) + end + + scenario 'user can see a button to install runners on kubernetes clusters' do + visit runners_path(project) + + expect(page).to have_link('Install Runner on Kubernetes', href: project_clusters_path(project)) + end + end + context 'when a project has enabled shared_runners' do given(:project) { create(:project) } |