debian-mirror-gitlab/features/project/issues/labels.feature

49 lines
1.5 KiB
Gherkin
Raw Normal View History

2015-12-23 02:04:40 +05:30
@project_issues
2015-04-26 12:48:37 +05:30
Feature: Project Issues Labels
2014-09-02 18:07:02 +05:30
Background:
Given I sign in as a user
And I own project "Shop"
And project "Shop" has labels: "bug", "feature", "enhancement"
Given I visit project "Shop" labels page
Scenario: I should see labels list
2015-04-26 12:48:37 +05:30
Then I should see label 'bug'
And I should see label 'feature'
2014-09-02 18:07:02 +05:30
Scenario: I create new label
Given I visit project "Shop" new label page
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'
2015-04-26 12:48:37 +05:30
@javascript
Scenario: I remove all labels
When I delete all labels
Then I should see labels help message
2014-09-02 18:07:02 +05:30
Scenario: I create a label with invalid color
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'