BigW Consortium Gitlab

labels.feature 1.48 KB
Newer Older
Douwe Maan committed
1
@project_issues
2
Feature: Project Issues Labels
randx committed
3
  Background:
4
    Given I sign in as a user
randx committed
5
    And I own project "Shop"
Dmitriy Zaporozhets committed
6
    And project "Shop" has labels: "bug", "feature", "enhancement"
7
    Given I visit project "Shop" labels page
randx committed
8

9
  Scenario: I should see labels list
10 11
    Then I should see label 'bug'
    And I should see label 'feature'
12 13

  Scenario: I create new label
14
    Given I visit project "Shop" new label page
15 16 17 18 19 20 21 22 23 24 25 26
    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'
27

28 29 30 31 32
  @javascript
  Scenario: I remove all labels
    When I delete all labels
    Then I should see labels help message

33
  Scenario: I create a label with invalid color
34
    Given I visit project "Shop" new label page
35 36
    When I submit new label with invalid color
    Then I should see label color error message
37 38 39 40 41 42 43 44 45 46 47 48

  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'