2015-12-09 09:50:28 +00:00
|
|
|
@project_issues
|
2014-10-02 16:42:54 +00:00
|
|
|
Feature: Project Issues Labels
|
2012-08-24 10:05:40 +00:00
|
|
|
Background:
|
2012-09-10 12:34:01 +00:00
|
|
|
Given I sign in as a user
|
2012-08-24 10:05:40 +00:00
|
|
|
And I own project "Shop"
|
2014-07-30 13:05:43 +00:00
|
|
|
And project "Shop" has labels: "bug", "feature", "enhancement"
|
2012-09-10 12:34:01 +00:00
|
|
|
Given I visit project "Shop" labels page
|
2012-08-24 10:05:40 +00:00
|
|
|
|
2014-07-31 11:06:14 +00:00
|
|
|
Scenario: I should see labels list
|
2014-09-11 20:53:21 +00:00
|
|
|
Then I should see label 'bug'
|
|
|
|
And I should see label 'feature'
|
2014-07-31 11:06:14 +00:00
|
|
|
|
|
|
|
Scenario: I create new label
|
2014-08-13 12:12:05 +00:00
|
|
|
Given I visit project "Shop" new label page
|
2014-07-31 11:06:14 +00:00
|
|
|
When I submit new label 'support'
|
|
|
|
Then I should see label 'support'
|
|
|
|
|
|
|
|
Scenario: I edit label
|
|
|
|
Given I visit 'bug' label edit page
|
|
|
|
When I change label 'bug' to 'fix'
|
|
|
|
Then I should not see label 'bug'
|
|
|
|
Then I should see label 'fix'
|
|
|
|
|
|
|
|
Scenario: I remove label
|
|
|
|
When I remove label 'bug'
|
|
|
|
Then I should not see label 'bug'
|
2014-08-11 21:59:30 +00:00
|
|
|
|
2014-09-01 09:09:07 +00:00
|
|
|
@javascript
|
|
|
|
Scenario: I remove all labels
|
|
|
|
When I delete all labels
|
|
|
|
Then I should see labels help message
|
|
|
|
|
2014-08-11 21:59:30 +00:00
|
|
|
Scenario: I create a label with invalid color
|
2014-08-13 12:12:05 +00:00
|
|
|
Given I visit project "Shop" new label page
|
2014-08-11 21:59:30 +00:00
|
|
|
When I submit new label with invalid color
|
|
|
|
Then I should see label color error message
|
2014-08-13 12:12:05 +00:00
|
|
|
|
|
|
|
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'
|