summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-02-29 13:16:00 +0000
committerDouwe Maan <douwe@gitlab.com>2016-02-29 13:16:00 +0000
commita297e4404855bc79c53d5c1ca4df023a238c1798 (patch)
tree3d5462044238bbe2badce16fc918b68dad4c2b3e /features
parent9a7690f9e29fc31161e4ca94b4a44c035d84c02e (diff)
parent3d96bfaa8aa24f6ecdfb6c2e4189b01bb0ce1b51 (diff)
downloadgitlab-ce-a297e4404855bc79c53d5c1ca4df023a238c1798.tar.gz
Merge branch 'issue_13621' into 'master'
Don't repeat labels listed on Labels tab. Fixes #13622 See merge request !2924
Diffstat (limited to 'features')
-rw-r--r--features/project/milestone.feature1
-rw-r--r--features/steps/project/project_milestone.rb6
2 files changed, 7 insertions, 0 deletions
diff --git a/features/project/milestone.feature b/features/project/milestone.feature
index e0f4c0e9d7c..713f0f3b979 100644
--- a/features/project/milestone.feature
+++ b/features/project/milestone.feature
@@ -13,6 +13,7 @@ Feature: Project Milestone
Given I visit project "Shop" milestones page
And I click link "v2.2"
Then I should see the labels "bug", "enhancement" and "feature"
+ And I should see the "bug" label listed only once
@javascript
Scenario: Listing labels from labels tab
diff --git a/features/steps/project/project_milestone.rb b/features/steps/project/project_milestone.rb
index ec881c0d8fc..2508c09e36d 100644
--- a/features/steps/project/project_milestone.rb
+++ b/features/steps/project/project_milestone.rb
@@ -41,6 +41,12 @@ class Spinach::Features::ProjectMilestone < Spinach::FeatureSteps
end
end
+ step 'I should see the "bug" label listed only once' do
+ page.within('#tab-labels') do
+ expect(page).to have_content('bug', count: 1)
+ end
+ end
+
step 'I click link "v2.2"' do
click_link "v2.2"
end