[BUGFIX] Wait some seconds before click in modal content 49/56749/2
authorFrank Naegler <frank.naegler@typo3.org>
Fri, 20 Apr 2018 08:22:38 +0000 (10:22 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 20 Apr 2018 13:17:47 +0000 (15:17 +0200)
Some acceptance tests fails because of a timing issues. If a modal is not
ready the next click fails. This patch adds a wait before click.

Resolves: #84806
Releases: master
Change-Id: Idb41eee4930441c36f99a8f5d5faa0e74c380a5c
Reviewed-on: https://review.typo3.org/56749
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/FalMetadataInheritanceCest.php

index 01413b6..9a3c461 100644 (file)
@@ -52,6 +52,7 @@ class FalMetadataInheritanceCest
         $I->click('.t3js-page-new-ce a');
         $I->switchToIFrame();
         $I->waitForElement('.t3js-modal.in');
+        $I->wait(3);
         $I->click('Text & Images');
         $I->switchToIFrame('list_frame');
         $I->waitForText('Create new Page Content on page');
@@ -142,6 +143,7 @@ class FalMetadataInheritanceCest
         $I->click('.t3js-page-new-ce a');
         $I->switchToIFrame();
         $I->waitForElement('.t3js-modal.in');
+        $I->wait(3);
         $I->click('Text & Images');
         $I->switchToIFrame('list_frame');
         $I->waitForText('Create new Page Content on page');