summaryrefslogtreecommitdiff
path: root/features/project/source
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2013-10-11 13:44:00 +0200
committerMarin Jankovski <maxlazio@gmail.com>2013-10-11 13:44:00 +0200
commitf40e0171db1fd15bdfa87ea30a0a2a38834c7b01 (patch)
treec022454f22c534f1f928daa776c21e8f3519bdd8 /features/project/source
parentc07251887c08553a2f734d7a18e6cfefad7a7084 (diff)
downloadgitlab-ce-f40e0171db1fd15bdfa87ea30a0a2a38834c7b01.tar.gz
Test if markdown is rendered properly.
Diffstat (limited to 'features/project/source')
-rw-r--r--features/project/source/markdown_render.feature70
1 files changed, 70 insertions, 0 deletions
diff --git a/features/project/source/markdown_render.feature b/features/project/source/markdown_render.feature
new file mode 100644
index 00000000000..d461ae86c81
--- /dev/null
+++ b/features/project/source/markdown_render.feature
@@ -0,0 +1,70 @@
+Feature: Project markdown render
+ Background:
+ Given I sign in as a user
+ And I own project "Delta"
+ Given I visit project source page
+
+ Scenario: I browse files from master branch
+ Then I should see files from repository in master
+ And I should see rendered README which contains correct links
+ And I click on Gitlab API in README
+ Then I should see correct document rendered
+
+ Scenario: I view README in master branch
+ Then I should see files from repository in master
+ And I should see rendered README which contains correct links
+ And I click on Rake tasks in README
+ Then I should see correct directory rendered
+
+ Scenario: I navigate to doc directory to view documentation in master
+ And I navigate to the doc/api/README
+ And I see correct file rendered
+ And I click on users in doc/api/README
+ Then I should see the correct document file
+
+ Scenario: I navigate to doc directory to view user doc in master
+ And I navigate to the doc/api/README
+ And I see correct file rendered
+ And I click on raketasks in doc/api/README
+ Then I should see correct directory rendered
+
+ Scenario: I browse files from markdown branch
+ When I visit markdown branch
+ Then I should see files from repository in markdown branch
+ And I should see rendered README which contains correct links
+ And I click on Gitlab API in README
+ Then I should see correct document rendered for markdown branch
+
+ Scenario: I browse directory from markdown branch
+ When I visit markdown branch
+ Then I should see files from repository in markdown branch
+ And I should see rendered README which contains correct links
+ And I click on Rake tasks in README
+ Then I should see correct directory rendered for markdown branch
+
+ Scenario: I navigate to doc directory to view documentation in markdown branch
+ When I visit markdown branch
+ And I navigate to the doc/api/README
+ And I see correct file rendered in markdown branch
+ And I click on users in doc/api/README
+ Then I should see the users document file in markdown branch
+
+ Scenario: I navigate to doc directory to view user doc in markdown branch
+ When I visit markdown branch
+ And I navigate to the doc/api/README
+ And I see correct file rendered in markdown branch
+ And I click on raketasks in doc/api/README
+ Then I should see correct directory rendered for markdown branch
+
+ Scenario: I create a wiki page with different links
+ Given I go to wiki page
+ And I add various links to the wiki page
+ Then Wiki page should have added links
+ And I click on test link
+ Then I see new wiki page named test
+ When I go back to wiki page home
+ And I click on GitLab API doc link
+ Then I see Gitlab API document
+ When I go back to wiki page home
+ And I click on Rake tasks link
+ Then I see Rake tasks directory