[BUGFIX] Wait until modal overlay is closed in tests 10/47710/2
authorSascha Egerer <sascha@sascha-egerer.de>
Fri, 15 Apr 2016 14:06:14 +0000 (16:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 15 Apr 2016 15:03:03 +0000 (17:03 +0200)
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>
typo3/sysext/core/Tests/Acceptance/Support/Helper/ModalDialog.php

index cddf85c..db6b9e0 100644 (file)
@@ -66,6 +66,7 @@ class ModalDialog
         $I = $this->tester;
         $this->canSeeDialog();
         $I->click($buttonLinkLocator, self::$openedModalButtonContainerSelector);
+        $I->waitForElementNotVisible(self::$openedModalSelector);
     }
 
     /**