Behat: Save draft notifications have changed

This commit is contained in:
Stig Lindqvist 2013-06-07 10:52:12 +12:00
parent df1836add2
commit a6be891214
2 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@ Feature: Edit a page
When I fill in "Title" with "About Us!" When I fill in "Title" with "About Us!"
And I fill in the "Content" HTML field with "my new content" And I fill in the "Content" HTML field with "my new content"
And I press the "Save draft" button 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" When I follow "About Us"
Then the "Title" field should contain "About Us!" Then the "Title" field should contain "About Us!"

View File

@ -28,16 +28,18 @@ Feature: Preview a page
Then I should see "About Us" in CMS Tree Then I should see "About Us" in CMS Tree
When I follow "About Us" 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 fill in the "Content" HTML field with "my new content"
And I press the "Save draft" button And I press the "Save draft" button
And I set the CMS mode to "Preview mode" And I set the CMS mode to "Preview mode"
When I switch the preview to "Published" When I switch the preview to "Published"
Then the preview does not contain "my new content" 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" 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 the preview contains "my new content"
And I set the CMS mode to "Edit mode" And I set the CMS mode to "Edit mode"