2014-10-02 16:42:54 +00:00
|
|
|
Feature: Project Commits Branches
|
2012-09-10 11:27:11 +00:00
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-15 04:15:28 +00:00
|
|
|
And I own project "Shop"
|
2012-08-03 16:59:55 +00:00
|
|
|
And project "Shop" has protected branches
|
|
|
|
|
|
|
|
Scenario: I can see project all git branches
|
2014-05-24 11:20:12 +00:00
|
|
|
Given I visit project branches page
|
2012-08-03 16:59:55 +00:00
|
|
|
Then I should see "Shop" all branches list
|
|
|
|
|
|
|
|
Scenario: I can see project protected git branches
|
2014-05-24 11:20:12 +00:00
|
|
|
Given I visit project protected branches page
|
2012-08-03 16:59:55 +00:00
|
|
|
Then I should see "Shop" protected branches list
|
2012-06-15 04:15:28 +00:00
|
|
|
|
2014-02-24 12:55:27 +00:00
|
|
|
Scenario: I create a branch
|
2014-05-24 11:20:12 +00:00
|
|
|
Given I visit project branches page
|
|
|
|
And I click new branch link
|
2014-07-27 17:56:33 +00:00
|
|
|
And I submit new branch form
|
2014-02-24 12:55:27 +00:00
|
|
|
Then I should see new branch created
|
2014-08-17 15:05:32 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I delete a branch
|
|
|
|
Given I visit project branches page
|
|
|
|
And I click branch 'improve/awesome' delete link
|
|
|
|
Then I should not see branch 'improve/awesome'
|
2014-07-27 14:40:00 +00:00
|
|
|
|
|
|
|
Scenario: I create a branch with invalid name
|
|
|
|
Given I visit project branches page
|
|
|
|
And I click new branch link
|
2014-07-27 17:56:33 +00:00
|
|
|
And I submit new branch form with invalid name
|
2014-07-27 14:40:00 +00:00
|
|
|
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
|
2014-07-27 17:56:33 +00:00
|
|
|
And I submit new branch form with invalid reference
|
2014-07-27 14:40:00 +00:00
|
|
|
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
|
2014-07-27 17:56:33 +00:00
|
|
|
And I submit new branch form with branch that already exists
|
2014-07-27 14:40:00 +00:00
|
|
|
Then I should see new an error that branch already exists
|