branches.feature 1.36 KB
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
@project_commits
2
Feature: Project Commits Branches
3 4
  Background:
    Given I sign in as a user
Dmitriy Zaporozhets's avatar
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's avatar
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's avatar
Dmitriy Zaporozhets committed
13
    Given I visit project protected branches page
14
    Then I should see "Shop" protected branches list
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15

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

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

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

37
  @javascript
38 39 40
  Scenario: I create a branch that already exists
    Given I visit project branches page
    And I click new branch link
41
    And I submit new branch form with branch that already exists
42
    Then I should see new an error that branch already exists