mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Behat: Save draft notifications have changed
This commit is contained in:
parent
df1836add2
commit
a6be891214
@ -22,7 +22,7 @@ Feature: Edit a page
|
||||
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
|
||||
Then I should see "Saved" in the "button#Form_EditForm_action_save" element
|
||||
|
||||
When I follow "About Us"
|
||||
Then the "Title" field should contain "About Us!"
|
||||
|
@ -28,16 +28,18 @@ Feature: Preview a page
|
||||
Then I should see "About Us" in CMS Tree
|
||||
|
||||
When I follow "About Us"
|
||||
And I fill in the "Content" HTML field with "first content"
|
||||
And I press the "Publish" button
|
||||
And I fill in the "Content" HTML field with "my new content"
|
||||
And I press the "Save draft" button
|
||||
And I set the CMS mode to "Preview mode"
|
||||
|
||||
When I switch the preview to "Published"
|
||||
Then the preview does not contain "my new content"
|
||||
And the preview contains "You can fill"
|
||||
And the preview contains "first content"
|
||||
|
||||
When I switch the preview to "Draft"
|
||||
Then the preview does not contain "You can fill"
|
||||
Then the preview does not contain "first content"
|
||||
And the preview contains "my new content"
|
||||
|
||||
And I set the CMS mode to "Edit mode"
|
||||
|
Loading…
Reference in New Issue
Block a user