diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-28 11:52:14 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-12-30 18:19:48 +0100 |
commit | 18fa1550251655ce84a0886caaab7262fbeb9c51 (patch) | |
tree | 8ce5d20bc5b6d67d0edd0d3d3be42f3deac3de30 /features/project | |
parent | 394e2ec50b066b5e911b749aa13192ab50e703d4 (diff) | |
download | gitlab-ce-18fa1550251655ce84a0886caaab7262fbeb9c51.tar.gz |
Add tests for disabled blob edit button cases.
Diffstat (limited to 'features/project')
-rw-r--r-- | features/project/source/browse_files.feature | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature index b7d70881d56..6ea64f70092 100644 --- a/features/project/source/browse_files.feature +++ b/features/project/source/browse_files.feature @@ -50,6 +50,16 @@ Feature: Project Source Browse Files And I click button "Edit" Then I can edit code + Scenario: If the file is binary the edit link is hidden + Given I visit a binary file in the repo + Then I cannot see the edit button + + Scenario: If I don't have edit permission the edit link is disabled + Given public project "Community" + And I visit project "Community" source page + And I click on ".gitignore" file in repo + Then The edit button is disabled + @javascript Scenario: I can edit and commit file Given I click on ".gitignore" file in repo |