From 023786917f06e2081069d1cf60152697379d8d86 Mon Sep 17 00:00:00 2001
From: Sascha Egerer <sascha@sascha-egerer.de>
Date: Fri, 15 Apr 2016 16:06:14 +0200
Subject: [PATCH] [BUGFIX] Wait until modal overlay is closed in tests
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The modal helper should wait until the overlay is closed when
interacting with a modal.

Change-Id: I9efe74d865487ec1d38979f24a764612cb4b8073
Resolves: #75620
Releases: master
Reviewed-on: https://review.typo3.org/47710
Reviewed-by: Dirk Jüttner <dirk.juettner@gmail.com>
Tested-by: Dirk Jüttner <dirk.juettner@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php b/typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php
index cddf85c72aa4..db6b9e0e0e7e 100644
--- a/typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php
+++ b/typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php
@@ -66,6 +66,7 @@ class ModalDialog
         $I = $this->tester;
         $this->canSeeDialog();
         $I->click($buttonLinkLocator, self::$openedModalButtonContainerSelector);
+        $I->waitForElementNotVisible(self::$openedModalSelector);
     }
 
     /**
-- 
GitLab