2012-11-09 19:15:54 +01:00
|
|
|
Feature: Edit a page
|
|
|
|
As an author
|
|
|
|
I want to edit a page in the CMS
|
|
|
|
So that I correct errors and provide new information
|
|
|
|
|
|
|
|
Background:
|
2013-06-05 14:18:07 +02:00
|
|
|
Given a "page" "About Us"
|
2012-11-09 19:15:54 +01:00
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
And I go to "/admin/pages"
|
|
|
|
Then I should see "About Us" in CMS Tree
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can open a page for editing from the pages tree
|
|
|
|
When I follow "About Us"
|
|
|
|
Then I should see an edit page form
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can edit title and content and see the changes on draft
|
|
|
|
When I follow "About Us"
|
|
|
|
Then I should see an edit page form
|
|
|
|
|
|
|
|
When I fill in "Title" with "About Us!"
|
2012-12-10 15:38:32 +01:00
|
|
|
And I fill in the "Content" HTML field with "my new content"
|
2013-06-05 13:37:19 +02:00
|
|
|
And I press the "Save draft" button
|
2012-11-09 20:50:16 +01:00
|
|
|
Then I should see a "Saved." notice
|
2012-11-09 19:15:54 +01:00
|
|
|
|
|
|
|
When I follow "About Us"
|
|
|
|
Then the "Title" field should contain "About Us!"
|
2012-12-10 15:38:32 +01:00
|
|
|
And the "Content" HTML field should contain "my new content"
|