diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-01 11:09:07 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-04 23:15:28 +0200 |
commit | bd2355191fa45ec04ba7b79b7fcb2b26088abc16 (patch) | |
tree | 669b43db999861469f70da6aacada6da3ec172df /features/steps/project/labels.rb | |
parent | 7a0e1c7238033b33b7296701bfded56d4ad7f250 (diff) | |
download | gitlab-ce-bd2355191fa45ec04ba7b79b7fcb2b26088abc16.tar.gz |
Show labels help message if last label is deleted
Diffstat (limited to 'features/steps/project/labels.rb')
-rw-r--r-- | features/steps/project/labels.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/features/steps/project/labels.rb b/features/steps/project/labels.rb index 8320405e096..6dd4df8a1ad 100644 --- a/features/steps/project/labels.rb +++ b/features/steps/project/labels.rb @@ -25,6 +25,22 @@ class ProjectLabels < Spinach::FeatureSteps end end + step 'I delete all labels' do + within '.labels' do + all('.btn-remove').each do |remove| + remove.click + sleep 0.05 + end + end + end + + step 'I should see labels help message' do + within '.labels' do + page.should have_content 'Create first label or generate default set of '\ + 'labels' + end + end + step 'I submit new label \'support\'' do fill_in 'Title', with: 'support' fill_in 'Background Color', with: '#F95610' |