diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-26 15:26:52 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-26 15:33:48 +0200 |
commit | f456fce2a5bf62589c2bd07e99835b07ab7bd976 (patch) | |
tree | 54dc6044d8831f3a1d9f5ff4db13424d243312f1 /features/project/source | |
parent | fd338d67159e6dffaf54fd42fbeddb3b17e4d49f (diff) | |
download | gitlab-ce-f456fce2a5bf62589c2bd07e99835b07ab7bd976.tar.gz |
Add web UI file CRUD tests.
me/ciro/bak/git/cirosantilli.com/web'
Diffstat (limited to 'features/project/source')
-rw-r--r-- | features/project/source/browse_files.feature | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature index e4f10c0de2e..d658f545d1c 100644 --- a/features/project/source/browse_files.feature +++ b/features/project/source/browse_files.feature @@ -25,12 +25,32 @@ Feature: Project Browse files Then I can see new file page @javascript + Scenario: I can create and commit file + 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 click on "Commit changes" + Then I am redirected to the new file + And I should see its new content + + @javascript Scenario: I can edit file Given I click on ".gitignore" file in repo And I click button "edit" Then I can edit code @javascript + Scenario: I can edit and commit file + 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 click on "Commit changes" + Then I am redirected to the ".gitignore" + And I should see its new content + + @javascript Scenario: I can see editing preview Given I click on ".gitignore" file in repo And I click button "edit" @@ -38,6 +58,16 @@ Feature: Project Browse files And I click link "Diff" Then I see diff + @javascript + Scenario: I can remove file and commit + Given I click on ".gitignore" file in repo + And I see the ".gitignore" + And I click on "remove" + And I fill the commit message + And I click on "Remove file" + Then I am redirected to the files URL + And I don't see the ".gitignore" + Scenario: I can browse directory with Browse Dir Given I click on files directory And I click on history link |