Skip to content

Commit

Permalink
[TASK] acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achimfritz committed Dec 22, 2024
1 parent 9d1da64 commit 03a7811
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/Acceptance/Backend/ContentDefenderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ public function canCreateNewChildInContainerIfMaxitemsIsReachedInOtherContainer(
$I->click($newContentElementLabel, '#element-tt_content-402 [data-colpos="' . $dataColPos . '"]');
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() > 12) {
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default\"]').click()");
}
$I->waitForText('Header Only');
$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
if ($typo3Version->getMajorVersion() < 12) {
Expand Down

0 comments on commit 03a7811

Please sign in to comment.