Add behat test for toggling between active tabs in CMS edit pages

This commit is contained in:
Robbie Averill 2017-07-16 23:42:09 +12:00
parent dd4d5740b8
commit 9bde76bad0

View File

@ -27,3 +27,14 @@ Feature: Edit a page
When I click on "About Us" in the tree When I click on "About Us" in the tree
Then the "Title" field should contain "About Us!" Then the "Title" field should contain "About Us!"
And the "Content" HTML field should contain "my new content" And the "Content" HTML field should contain "my new content"
@javascript
Scenario: I can toggle between the main tabs on a page
When I click on "About Us" in the tree
Then I should see an edit page form
And I should see a "Settings" tab in the CMS content header tabs
And the "Content" header tab should be active
When I click on "Settings" in the header tabs
Then the "Settings" header tab should be active
And the "Content" header tab should not be active