diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-25 17:46:38 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-03 23:49:10 +0900 |
commit | 84626fbb6c6deca47534e7e3d5a843d03494c7d3 (patch) | |
tree | 21b00e576d715452edfd6991cfbd58e52107b978 | |
parent | 641491777032482632e63e0d968a0bad32856794 (diff) | |
download | gitlab-ce-84626fbb6c6deca47534e7e3d5a843d03494c7d3.tar.gz |
Add feature spec
-rw-r--r-- | spec/features/runners_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index 785cfeb34bd..c7f0e342809 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -43,6 +43,21 @@ feature 'Runners' do expect(page).not_to have_content(specific_runner.display_name) end + scenario 'user edits the runner to be protected' do + visit runners_path(project) + + within '.activated-specific-runners' do + first('.edit-runner > a').click + end + + expect(page.find_field('runner[access_level]')).not_to be_checked + + check 'runner_access_level' + click_button 'Save changes' + + expect(page).to have_content 'Protected Yes' + end + context 'when a runner has a tag' do background do specific_runner.update(tag_list: ['tag']) |