diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2016-11-13 02:51:47 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-01-30 17:54:48 +0300 |
commit | bfbdc62a3f9d99cad85940526fa17031baface28 (patch) | |
tree | 6ac918c35930c262e1eb5c11631fe7e35382ab4a /features/steps/project/issues | |
parent | 09567e93adf57421f3a7b86992b164e6a86e7542 (diff) |
Added labels empty state and priority label empty state
Fixed delete labels not working
Review changes
Diffstat (limited to 'features/steps/project/issues')
-rw-r--r-- | features/steps/project/issues/labels.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/features/steps/project/issues/labels.rb b/features/steps/project/issues/labels.rb index f74a9b5df47..4a35b71af2f 100644 --- a/features/steps/project/issues/labels.rb +++ b/features/steps/project/issues/labels.rb @@ -15,17 +15,16 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps step 'I delete all labels' do page.within '.labels' do - page.all('.remove-row').each do |remove| - remove.click - sleep 0.05 + page.all('.remove-row').each do + first('.remove-row').click end end end step 'I should see labels help message' do page.within '.labels' do - expect(page).to have_content 'Create a label or generate a default set '\ - 'of labels' + expect(page).to have_content 'Generate a default set of labels' + expect(page).to have_content 'New label' end end |