summaryrefslogtreecommitdiff
path: root/features/project/source
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-08-08 16:03:58 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-01 10:26:47 +0200
commit81336bd2b52bdbee9a1199f78e7da001814fae84 (patch)
treef85153e7ec1c3ef01e27c2f8c751b9ae0065f2dc /features/project/source
parent174c00cf2c026a3bdc61d94b45195a5e5c99202f (diff)
downloadgitlab-ce-81336bd2b52bdbee9a1199f78e7da001814fae84.tar.gz
Add permalink to fixed SHA URL on blob view.
Diffstat (limited to 'features/project/source')
-rw-r--r--features/project/source/browse_files.feature12
1 files changed, 12 insertions, 0 deletions
diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature
index f8934da8de5..a674800ccb8 100644
--- a/features/project/source/browse_files.feature
+++ b/features/project/source/browse_files.feature
@@ -51,3 +51,15 @@ Feature: Project Browse files
Scenario: I can browse code with Browse Code
Given I click on history link
Then I see Browse code link
+
+ # Permalink
+
+ Scenario: I click on the permalink link from a branch ref
+ Given I click on ".gitignore" file in repo
+ And I click on permalink
+ Then I am redirected to the permalink URL
+
+ Scenario: I don't see the permalink link from a SHA ref
+ Given I visit project source page for "6d394385cf567f80a8fd85055db1ab4c5295806f"
+ And I click on ".gitignore" file in repo
+ Then I don't see the permalink link