summaryrefslogtreecommitdiff
path: root/features/project
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-01-27 21:27:59 +0000
committerDmitriy Zaporozhets <dzaporozhets@gitlab.com>2015-01-27 21:27:59 +0000
commitf57bffc82a5aa00e6494c65565255dfc9434f403 (patch)
tree1186ff9ef33a6563d3bab8f593e1f9bb82b5fb4e /features/project
parentfc17b440f93e61879ef4881aeacbcbca27dcde1c (diff)
parente956066d4a9c3f556a52f80acfb5c761aede7c6c (diff)
downloadgitlab-ce-f57bffc82a5aa00e6494c65565255dfc9434f403.tar.gz
Merge branch 'init-from-ui' into 'master'
Add tests for creating bare repo and first file in UI Part of #1930 See merge request !1444
Diffstat (limited to 'features/project')
-rw-r--r--features/project/source/browse_files.feature13
1 files changed, 13 insertions, 0 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature
index 6ea64f70092..ccb29293a89 100644
--- a/features/project/source/browse_files.feature
+++ b/features/project/source/browse_files.feature
@@ -35,6 +35,19 @@ Feature: Project Source Browse Files
And I should see its new content
@javascript
+ Scenario: I can create file in empty repo
+ Given I own an empty project
+ And I visit my empty project page
+ And I create bare repo
+ When I click on "add a file" link
+ And I edit code
+ And I fill the new file name
+ And I fill the commit message
+ And I click on "Commit Changes"
+ Then I am redirected to the new file
+ And I should see its new content
+
+ @javascript
Scenario: If I enter an illegal file name I see an error message
Given I click on "new file" link in repo
And I fill the new file name with an illegal name