mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
d2105ef7a6
Too many clashes with other steps otherwise, e.g. with 'And the preview contains "You can fill"'. Also removed some duplicated code no longer necessary because we use inheritance rather than composition
29 lines
935 B
Gherkin
29 lines
935 B
Gherkin
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:
|
|
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 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!"
|
|
And I fill in the "Content" HTML field with "my new content"
|
|
And I press the "Save draft" button
|
|
Then I should see a "Saved." notice
|
|
|
|
When I follow "About Us"
|
|
Then the "Title" field should contain "About Us!"
|
|
And the "Content" HTML field should contain "my new content" |