BigW Consortium Gitlab

branches.feature 1.57 KB
Newer Older
Douwe Maan committed
1
@project_commits
2
Feature: Project Commits Branches
3 4
  Background:
    Given I sign in as a user
Dmitriy Zaporozhets committed
5
    And I own project "Shop"
6 7 8
    And project "Shop" has protected branches

  Scenario: I can see project all git branches
Dmitriy Zaporozhets committed
9
    Given I visit project branches page
10 11 12
    Then I should see "Shop" all branches list

  Scenario: I can see project protected git branches
Dmitriy Zaporozhets committed
13
    Given I visit project protected branches page
14
    Then I should see "Shop" protected branches list
Dmitriy Zaporozhets committed
15

16
  Scenario: I create a branch
Dmitriy Zaporozhets committed
17 18
    Given I visit project branches page
    And I click new branch link
19
    And I submit new branch form
20
    Then I should see new branch created
21 22 23 24

  @javascript
  Scenario: I delete a branch
    Given I visit project branches page
25
    And I filter for branch improve/awesome
26 27
    And I click branch 'improve/awesome' delete link
    Then I should not see branch 'improve/awesome'
28

29
  @javascript
30 31 32
  Scenario: I create a branch with invalid name
    Given I visit project branches page
    And I click new branch link
33
    And I submit new branch form with invalid name
34 35 36 37 38
    Then I should see new an error that branch is invalid

  Scenario: I create a branch with invalid reference
    Given I visit project branches page
    And I click new branch link
39
    And I submit new branch form with invalid reference
40 41 42 43 44
    Then I should see new an error that ref is invalid

  Scenario: I create a branch that already exists
    Given I visit project branches page
    And I click new branch link
45
    And I submit new branch form with branch that already exists
46
    Then I should see new an error that branch already exists