summaryrefslogtreecommitdiff
path: root/features/project/wiki.feature
diff options
context:
space:
mode:
authorDan Knox <dknox@threedotloft.com>2013-03-19 21:28:10 -0700
committerDan Knox <dknox@threedotloft.com>2013-03-19 21:36:09 -0700
commit8300ae366cc2a2e342002a96e735445e8bf15f14 (patch)
tree3d0f9baf6428f2326406ef3af45730c554408c13 /features/project/wiki.feature
parent6880ace1feff9fdd390099026882fe4af3e4b742 (diff)
downloadgitlab-ce-8300ae366cc2a2e342002a96e735445e8bf15f14.tar.gz
Fix the Cancel button on the Edit Wiki page.
The Cancel button on the Edit Wiki page was still redirecting back to the "Index" page which is no longer the default Wiki page. This commit changes the Cancel button in the following ways: * Pressing Cancel while editing an existing Wiki page will now redirect you back to the latest version of that page. * Pressing Cancel while editing a brand new Wiki home page that does not yet exist will redirect you to back to the same Edit Wiki Home page.
Diffstat (limited to 'features/project/wiki.feature')
-rw-r--r--features/project/wiki.feature11
1 files changed, 11 insertions, 0 deletions
diff --git a/features/project/wiki.feature b/features/project/wiki.feature
index 45761f09f51..90eb2b79c66 100644
--- a/features/project/wiki.feature
+++ b/features/project/wiki.feature
@@ -8,6 +8,10 @@ Feature: Project Wiki
Given I create the Wiki Home page
Then I should see the newly created wiki page
+ Scenario: Pressing Cancel while editing a brand new Wiki
+ Given I click on the Cancel button
+ Then I should be redirected back to the Edit Home Wiki page
+
Scenario: Edit existing page
Given I have an existing Wiki page
And I browse to that Wiki page
@@ -15,6 +19,13 @@ Feature: Project Wiki
And I change the content
Then I should see the updated content
+ Scenario: Pressing Cancel while editing an existing Wiki page
+ Given I have an existing Wiki page
+ And I browse to that Wiki page
+ And I click on the Edit button
+ And I click on the Cancel button
+ Then I should be redirected back to that Wiki page
+
Scenario: View page history
Given I have an existing wiki page
And That page has two revisions