Commit 84626fbb authored by Shinya Maeda's avatar Shinya Maeda

Add feature spec

parent 64149177
...@@ -43,6 +43,21 @@ feature 'Runners' do ...@@ -43,6 +43,21 @@ feature 'Runners' do
expect(page).not_to have_content(specific_runner.display_name) expect(page).not_to have_content(specific_runner.display_name)
end 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 context 'when a runner has a tag' do
background do background do
specific_runner.update(tag_list: ['tag']) specific_runner.update(tag_list: ['tag'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment