2012-11-09 19:15:54 +01:00
|
|
|
Feature: Edit a page
|
2016-02-15 02:58:24 +01:00
|
|
|
As an author
|
|
|
|
I want to edit a page in the CMS
|
|
|
|
So that I correct errors and provide new information
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2016-02-15 02:58:24 +01:00
|
|
|
Background:
|
|
|
|
Given a "page" "About Us"
|
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
And I go to "/admin/pages"
|
|
|
|
Then I should see "About Us" in the tree
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2016-02-15 02:58:24 +01:00
|
|
|
@javascript
|
|
|
|
Scenario: I can open a page for editing from the pages tree
|
|
|
|
When I click on "About Us" in the tree
|
|
|
|
Then I should see an edit page form
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2016-02-15 02:58:24 +01:00
|
|
|
@javascript
|
|
|
|
Scenario: I can edit title and content and see the changes on draft
|
|
|
|
When I click on "About Us" in the tree
|
|
|
|
Then I should see an edit page form
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2016-02-15 02:58:24 +01:00
|
|
|
When I fill in "Title" with "About Us!"
|
|
|
|
And I fill in the "Content" HTML field with "<p>my new content</p>"
|
|
|
|
And I press the "Save draft" button
|
2017-01-10 02:40:28 +01:00
|
|
|
Then I should see the "Saved" button
|
2012-11-09 19:15:54 +01:00
|
|
|
|
2016-02-15 02:58:24 +01:00
|
|
|
When I click on "About Us" in the tree
|
|
|
|
Then the "Title" field should contain "About Us!"
|
|
|
|
And the "Content" HTML field should contain "my new content"
|