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