3 Given I sign in as a user
4 And I own project "Shop"
5 Given I visit project wiki page
8 Given I create the Wiki Home page
9 Then I should see the newly created wiki page
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
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
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
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
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
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