Skip to content

Commit

Permalink
[TASK] run acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
achimfritz committed Dec 22, 2024
1 parent ecf0ec0 commit 5306d70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Acceptance/Backend/ContentDefenderCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function canCreateChildIn2ColsContainerWithNoContentDefenderRestrictionsD
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() > 12) {
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('header ')");
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default\"]').click()");
}
$I->waitForText('Header Only');
$I->see('Header Only');
Expand Down Expand Up @@ -78,7 +78,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizard(Backe
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() > 12) {
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('header ')");
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default\"]').click()");
}
$I->waitForText('Header Only');
$I->dontSee('Images Only');
Expand Down Expand Up @@ -121,7 +121,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizardTrigge
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() > 12) {
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('header ')");
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default\"]').click()");
}
$I->waitForText('Header Only');
$I->dontSee('Images Only');
Expand All @@ -148,7 +148,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewEl
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() > 12) {
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('header ')");
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default\"]').click()");
}
$I->waitForText('Header Only');
$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
Expand Down

0 comments on commit 5306d70

Please sign in to comment.