2012-09-10 09:35:23 -04:00
|
|
|
Feature: Project Wiki
|
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
2012-06-15 00:15:28 -04:00
|
|
|
And I own project "Shop"
|
|
|
|
Given I visit project wiki page
|
|
|
|
|
|
|
|
Scenario: Add new page
|
2013-03-10 17:37:26 -04:00
|
|
|
Given I create the Wiki Home page
|
|
|
|
Then I should see the newly created wiki page
|
|
|
|
|
2013-03-20 00:28:10 -04:00
|
|
|
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
|
|
|
|
|
2013-03-10 17:37:26 -04:00
|
|
|
Scenario: Edit existing page
|
|
|
|
Given I have an existing Wiki page
|
|
|
|
And I browse to that Wiki page
|
|
|
|
And I click on the Edit button
|
|
|
|
And I change the content
|
|
|
|
Then I should see the updated content
|
|
|
|
|
2013-03-20 00:28:10 -04:00
|
|
|
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
|
|
|
|
|
2013-03-10 17:37:26 -04:00
|
|
|
Scenario: View page history
|
|
|
|
Given I have an existing wiki page
|
|
|
|
And That page has two revisions
|
|
|
|
And I browse to that Wiki page
|
|
|
|
And I click the History button
|
|
|
|
Then I should see both revisions
|
|
|
|
|
|
|
|
Scenario: Destroy 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 "Delete this page" button
|
|
|
|
Then The page should be deleted
|
|
|
|
|
|
|
|
Scenario: View all pages
|
|
|
|
Given I have an existing wiki page
|
|
|
|
And I browse to that Wiki page
|
|
|
|
And I click on the "Pages" button
|
|
|
|
Then I should see the existing page in the pages list
|
2014-05-05 07:47:47 -04:00
|
|
|
|
2014-05-07 05:52:07 -04:00
|
|
|
Scenario: File exists in wiki repo
|
|
|
|
Given I have an existing Wiki page with images linked on page
|
|
|
|
And I browse to wiki page with images
|
|
|
|
And I click on existing image link
|
|
|
|
Then I should see the image from wiki repo
|
|
|
|
|
2014-05-05 07:47:47 -04:00
|
|
|
Scenario: Image in wiki repo shown on the page
|
|
|
|
Given I have an existing Wiki page with images linked on page
|
|
|
|
And I browse to wiki page with images
|
|
|
|
Then Image should be shown on the page
|
|
|
|
|
|
|
|
Scenario: File does not exist in wiki repo
|
|
|
|
Given I have an existing Wiki page with images linked on page
|
|
|
|
And I browse to wiki page with images
|
|
|
|
And I click on image link
|
|
|
|
Then I should see the new wiki page form
|
2015-04-07 11:58:12 -04:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: New Wiki page that has a path
|
|
|
|
Given I create a New page with paths
|
|
|
|
And I click on the "Pages" button
|
|
|
|
Then I should see non-escaped link in the pages list
|
|
|
|
|
2015-06-18 22:13:32 -04:00
|
|
|
@javascript
|
2015-05-21 05:38:13 -04:00
|
|
|
Scenario: Creating an invalid new page
|
|
|
|
Given I create a New page with an invalid name
|
|
|
|
Then I should see an error message
|
|
|
|
|
2015-04-07 11:58:12 -04:00
|
|
|
@javascript
|
|
|
|
Scenario: Edit Wiki page that has a path
|
|
|
|
Given I create a New page with paths
|
|
|
|
And I click on the "Pages" button
|
|
|
|
And I edit the Wiki page with a path
|
|
|
|
Then I should see a non-escaped path
|
|
|
|
And I should see the Editing page
|
|
|
|
And I change the content
|
|
|
|
Then I should see the updated content
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: View the page history of a Wiki page that has a path
|
|
|
|
Given I create a New page with paths
|
|
|
|
And I click on the "Pages" button
|
|
|
|
And I view the page history of a Wiki page that has a path
|
|
|
|
Then I should see a non-escaped path
|
|
|
|
And I should see the page history
|