summaryrefslogtreecommitdiff
path: root/features/project/issues/labels.feature
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-08-13 14:12:05 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-08-13 15:48:26 +0200
commitb9519c83142d566ee562da57563db42849e91771 (patch)
tree4ba96aa8b92bf8b4c458e8c4ddb49ef16bc7313d /features/project/issues/labels.feature
parentc9eaa46c738ad23bbb3d6f3dfbdaf8a485d0a030 (diff)
downloadgitlab-ce-b9519c83142d566ee562da57563db42849e91771.tar.gz
Validate label titel in project scope
Diffstat (limited to 'features/project/issues/labels.feature')
-rw-r--r--features/project/issues/labels.feature17
1 files changed, 15 insertions, 2 deletions
diff --git a/features/project/issues/labels.feature b/features/project/issues/labels.feature
index b88108af719..29cf5307271 100644
--- a/features/project/issues/labels.feature
+++ b/features/project/issues/labels.feature
@@ -10,7 +10,7 @@ Feature: Project Labels
And I should see label "feature"
Scenario: I create new label
- Given I visit new label page
+ Given I visit project "Shop" new label page
When I submit new label 'support'
Then I should see label 'support'
@@ -25,6 +25,19 @@ Feature: Project Labels
Then I should not see label 'bug'
Scenario: I create a label with invalid color
- Given I visit new label page
+ Given I visit project "Shop" new label page
When I submit new label with invalid color
Then I should see label color error message
+
+ Scenario: I create a label that already exists
+ Given I visit project "Shop" new label page
+ When I submit new label 'bug'
+ Then I should see label label exist error message
+
+ Scenario: I create the same label on another project
+ Given I own project "Forum"
+ And I visit project "Forum" labels page
+ And I visit project "Forum" new label page
+ When I submit new label 'bug'
+ Then I should see label 'bug'
+