From 1ecc0f07692919ef2bf1fc08d82dca19c34d94c0 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 3 Apr 2019 08:42:01 +0800 Subject: [PATCH] MDL-65247 core: Fix action_modal Behat tests --- lib/tests/behat/action_modal.feature | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/tests/behat/action_modal.feature b/lib/tests/behat/action_modal.feature index 837b7a64651..8ddcae49b5e 100644 --- a/lib/tests/behat/action_modal.feature +++ b/lib/tests/behat/action_modal.feature @@ -26,13 +26,14 @@ Feature: Close modals by clicking outside them @javascript Scenario: The popup closes when clicked on dead space - Modal Given I log in as "admin" - And I am on site homepage - And I click on "Calendar" "link" - And I click on "New event" "button" + And I follow "This month" + And I press "New event" When I click on "[data-region='modal-container']" "css_element" # The modal does not close becaue it contains a form. Then ".modal-backdrop" "css_element" should be visible - And ".modal-content" "css_element" should be visible + # Confirm that the contents of the new calendar event modal are visible. + And I should see "New event" in the ".modal-title" "css_element" + And I should see "Event title" in the ".modal-body" "css_element" @javascript Scenario: The popup help closes when clicked