Skip to content

Commit 7b48789

Browse files
committed
[TASK] Typo3Version
1 parent ff2580a commit 7b48789

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ public function canCreateContentElementInContainer(BackendTester $I, PageTree $p
301301
$I->clickNewContentElement($containerColumn);
302302
$I->switchToIFrame();
303303
$I->waitForModal();
304-
if ($I->getTypo3MajorVersion()) {
304+
if ($I->getTypo3MajorVersion() < 12) {
305305
$I->waitForText('Header Only');
306306
$I->click('Header Only');
307307
} else {
308308
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('header ')");
309309
$I->waitForText('Header Only');
310-
if ($I->getTypo3MajorVersion()) {
310+
if ($I->getTypo3MajorVersion() < 13) {
311311
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"common_header\"]').click()");
312312
} else {
313313
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default_header\"]').click()");

0 commit comments

Comments
 (0)