From d93753877fc5e06147dcfe530dc71759d0165431 Mon Sep 17 00:00:00 2001 From: Raissa North Date: Tue, 25 Sep 2018 18:02:31 +1200 Subject: [PATCH] FIX Update Behat tests as action menu closes once items clicked --- tests/Behat/features/publish-block-element.feature | 1 + tests/Behat/features/unpublish-block-element.feature | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Behat/features/publish-block-element.feature b/tests/Behat/features/publish-block-element.feature index 27968ca5..489b68c8 100644 --- a/tests/Behat/features/publish-block-element.feature +++ b/tests/Behat/features/publish-block-element.feature @@ -28,5 +28,6 @@ Feature: Publish elements in the CMS Then I should see a "Published 'Block A' successfully" notice # Behat's assertion is faster than React's rendering When I wait 1 second + And I press the "View actions" button Then I should see the unpublish button for block 1 But I should not see the publish button for block 1 diff --git a/tests/Behat/features/unpublish-block-element.feature b/tests/Behat/features/unpublish-block-element.feature index c9e339b2..8e36b084 100644 --- a/tests/Behat/features/unpublish-block-element.feature +++ b/tests/Behat/features/unpublish-block-element.feature @@ -26,10 +26,10 @@ Feature: Unpublish elements in the CMS When I press the "Publish" button # Behat's assertion is faster than React's rendering And I wait 1 second + And I press the "View actions" button Then I should see the unpublish button for block 1 But I should not see the publish button for block 1 When I press the "Unpublish" button And I wait 1 second Then I should see a "Removed 'Block A' from the published page" notice -