summaryrefslogtreecommitdiff
path: root/features/project/commits
diff options
context:
space:
mode:
Diffstat (limited to 'features/project/commits')
-rw-r--r--features/project/commits/branches.feature8
-rw-r--r--features/project/commits/tags.feature20
2 files changed, 24 insertions, 4 deletions
diff --git a/features/project/commits/branches.feature b/features/project/commits/branches.feature
index 6725a697c21..d124cb7eecd 100644
--- a/features/project/commits/branches.feature
+++ b/features/project/commits/branches.feature
@@ -15,7 +15,7 @@ Feature: Project Browse branches
Scenario: I create a branch
Given I visit project branches page
And I click new branch link
- When I submit new branch form
+ And I submit new branch form
Then I should see new branch created
@javascript
@@ -27,17 +27,17 @@ Feature: Project Browse branches
Scenario: I create a branch with invalid name
Given I visit project branches page
And I click new branch link
- When I submit new branch form with invalid name
+ And I submit new branch form with invalid name
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
- When I submit new branch form with invalid reference
+ And I submit new branch form with invalid reference
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
- When I submit new branch form with branch that already exists
+ And I submit new branch form with branch that already exists
Then I should see new an error that branch already exists
diff --git a/features/project/commits/tags.feature b/features/project/commits/tags.feature
index 1ac0f8bfa45..36c7a6492ff 100644
--- a/features/project/commits/tags.feature
+++ b/features/project/commits/tags.feature
@@ -7,5 +7,25 @@ Feature: Project Browse tags
Scenario: I can see all git tags
Then I should see "Shop" all tags list
+ Scenario: I create a tag
+ And I click new tag link
+ And I submit new tag form
+ Then I should see new tag created
+
+ Scenario: I create a tag with invalid name
+ And I click new tag link
+ And I submit new tag form with invalid name
+ Then I should see new an error that tag is invalid
+
+ Scenario: I create a tag with invalid reference
+ And I click new tag link
+ And I submit new tag form with invalid reference
+ Then I should see new an error that tag ref is invalid
+
+ Scenario: I create a tag that already exists
+ And I click new tag link
+ And I submit new tag form with tag that already exists
+ Then I should see new an error that tag already exists
+
# @wip
# Scenario: I can download project by tag