Fixed behat tests

This commit is contained in:
Ingo Schommer 2013-04-09 09:38:46 +02:00
parent d7435cde71
commit 4087c14d1b
2 changed files with 2 additions and 1 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 a "Saved" button
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

@ -14,6 +14,7 @@ Feature: Preview a page
And I set the CMS mode to "Preview mode" And I set the CMS mode to "Preview mode"
Then I can see the preview panel Then I can see the preview panel
And the preview contains "About Us" And the preview contains "About Us"
Then I set the CMS mode to "Edit mode"
# TODO: # TODO:
# - Only tests correctly on fresh database # - Only tests correctly on fresh database