summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2016-11-12 23:51:47 +0000
committerFatih Acet <acetfatih@gmail.com>2017-01-30 17:54:48 +0300
commitbfbdc62a3f9d99cad85940526fa17031baface28 (patch)
tree6ac918c35930c262e1eb5c11631fe7e35382ab4a /features
parent09567e93adf57421f3a7b86992b164e6a86e7542 (diff)
downloadgitlab-ce-bfbdc62a3f9d99cad85940526fa17031baface28.tar.gz
Added labels empty state and priority label empty state20852-getting-started-project-better-blank-state-for-labels-view
Fixed delete labels not working Review changes
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/issues/labels.rb9
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