Add feature spec

This commit is contained in:
Shinya Maeda 2017-08-25 17:46:38 +09:00
parent 6414917770
commit 84626fbb6c
1 changed files with 15 additions and 0 deletions

View File

@ -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'])