From 9bde76bad08e9d2bc8a680a43a9c59fcd278b0a4 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sun, 16 Jul 2017 23:42:09 +1200 Subject: [PATCH] Add behat test for toggling between active tabs in CMS edit pages --- tests/behat/features/edit-a-page.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/behat/features/edit-a-page.feature b/tests/behat/features/edit-a-page.feature index 7b50624d..03a17b92 100644 --- a/tests/behat/features/edit-a-page.feature +++ b/tests/behat/features/edit-a-page.feature @@ -27,3 +27,14 @@ Feature: Edit a page When I click on "About Us" in the tree Then the "Title" field should contain "About Us!" 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