summaryrefslogtreecommitdiff
path: root/features/project
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-02-23 21:00:30 +0200
committerValery Sizov <vsv2711@gmail.com>2015-02-24 11:43:20 +0200
commit3177693c6f47fda14f84abf0b8f694aec3e076fc (patch)
tree446426d0e74de0d7f69e911900813bc478832381 /features/project
parent71a844cdaee129d4e300c20cbb27db009cf81b73 (diff)
downloadgitlab-ce-3177693c6f47fda14f84abf0b8f694aec3e076fc.tar.gz
WebEditor: save to new branch: spinach
Diffstat (limited to 'features/project')
-rw-r--r--features/project/source/browse_files.feature22
1 files changed, 22 insertions, 0 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature
index ee8d0bffa9b..90b966dd645 100644
--- a/features/project/source/browse_files.feature
+++ b/features/project/source/browse_files.feature
@@ -34,6 +34,17 @@ Feature: Project Source Browse Files
Then I am redirected to the new file
And I should see its new content
+ @javascript
+ Scenario: I can create and commit file and specify new branch
+ Given I click on "new file" link in repo
+ And I edit code
+ And I fill the new file name
+ And I fill the commit message
+ And I fill the new branch name
+ And I click on "Commit Changes"
+ Then I am redirected to the new file on new branch
+ And I should see its new content
+
@javascript @tricky
Scenario: I can create file in empty repo
Given I own an empty project
@@ -83,6 +94,17 @@ Feature: Project Source Browse Files
Then I am redirected to the ".gitignore"
And I should see its new content
+ @javascript
+ Scenario: I can edit and commit file to new branch
+ Given I click on ".gitignore" file in repo
+ And I click button "Edit"
+ And I edit code
+ And I fill the commit message
+ And I fill the new branch name
+ And I click on "Commit Changes"
+ Then I am redirected to the ".gitignore" on new branch
+ And I should see its new content
+
@javascript @wip
Scenario: If I don't change the content of the file I see an error message
Given I click on ".gitignore" file in repo