OSDN Git Service

Test if the views behave correctly with reference style relative links.
[wvm/gitlab.git] / features / project / wiki.feature
1 Feature: Project Wiki
2   Background:
3     Given I sign in as a user
4     And I own project "Shop"
5     Given I visit project wiki page
6
7   Scenario: Add new page
8     Given I create the Wiki Home page
9     Then I should see the newly created wiki page
10
11   Scenario: Pressing Cancel while editing a brand new Wiki
12     Given I click on the Cancel button
13     Then I should be redirected back to the Edit Home Wiki page
14
15   Scenario: Edit existing page
16     Given I have an existing Wiki page
17     And I browse to that Wiki page
18     And I click on the Edit button
19     And I change the content
20     Then I should see the updated content
21
22   Scenario: Pressing Cancel while editing an existing Wiki page
23     Given I have an existing Wiki page
24     And I browse to that Wiki page
25     And I click on the Edit button
26     And I click on the Cancel button
27     Then I should be redirected back to that Wiki page
28
29   Scenario: View page history
30     Given I have an existing wiki page
31     And That page has two revisions
32     And I browse to that Wiki page
33     And I click the History button
34     Then I should see both revisions
35
36   Scenario: Destroy Wiki page
37     Given I have an existing wiki page
38     And I browse to that Wiki page
39     And I click on the Edit button
40     And I click on the "Delete this page" button
41     Then The page should be deleted
42
43   Scenario: View all pages
44     Given I have an existing wiki page
45     And I browse to that Wiki page
46     And I click on the "Pages" button
47     Then I should see the existing page in the pages list