diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-12-29 13:29:20 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-12-29 13:29:20 +0300 |
commit | 7f8c8dad8618574217dd96c38b40abcea387c4ea (patch) | |
tree | 47bc2cd8fc858f12dea7f0491f8161c442c79ae8 /spec | |
parent | a3f2bd8a1929e03b43dbdbdcf3b94887d38d4afe (diff) | |
parent | f88d5974bbc3646587a9c15e9054e63fdb746a20 (diff) |
Merge branch '20035-pause-resume-runners' into 'master'
Add pause/resume button to project runners
Closes #20035
See merge request gitlab-org/gitlab-ce!16032
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/runners_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb index c7f0e342809..aec9de6c7ca 100644 --- a/spec/features/runners_spec.rb +++ b/spec/features/runners_spec.rb @@ -33,6 +33,26 @@ feature 'Runners' do expect(page).to have_content(specific_runner.platform) end + scenario 'user can pause and resume the specific runner' do + visit runners_path(project) + + within '.activated-specific-runners' do + expect(page).to have_content('Pause') + end + + click_on 'Pause' + + within '.activated-specific-runners' do + expect(page).to have_content('Resume') + end + + click_on 'Resume' + + within '.activated-specific-runners' do + expect(page).to have_content('Pause') + end + end + scenario 'user removes an activated specific runner if this is last project for that runners' do visit runners_path(project) |