Skip to content

Commit 5ececbb

Browse files
committed
[TASK] Test for disabled in new Content Element Wizard
1 parent 2cd8010 commit 5ececbb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,4 +536,31 @@ public function canSeeDescriptionOfContainerInNewContentElementWizard(BackendTes
536536
}
537537
$I->see('Some Description of the Container');
538538
}
539+
540+
/**
541+
* @param BackendTester $I
542+
* @param PageTree $pageTree
543+
* @throws \Exception
544+
*/
545+
public function canDisableContainerContentElementInNewContentElementWizard(BackendTester $I, PageTree $pageTree, PageTreeV13 $pageTreeV13)
546+
{
547+
$I->click('Page');
548+
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
549+
$I->waitForElement('#typo3-pagetree-tree .nodes .node');
550+
$pageTree->openPath(['home', 'emptyPage']);
551+
} else {
552+
$pageTreeV13->openPath(['home', 'emptyPage']);
553+
}
554+
$newContentElementLabel = $I->getNewContentElementLabel();
555+
$I->wait(0.2);
556+
$I->switchToContentFrame();
557+
$I->waitForText($newContentElementLabel);
558+
$I->executeJS("document.querySelector('typo3-backend-new-content-element-wizard-button').click()");
559+
$I->switchToIFrame();
560+
$I->waitForElement('.modal-dialog');
561+
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('container')");
562+
$I->wait(0.5);
563+
$I->see('2 Column Container With Header');
564+
$I->dontSee('1 Column');
565+
}
539566
}

0 commit comments

Comments
 (0)