Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Tests/Acceptance/Backend/LayoutCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,4 +536,31 @@ public function canSeeDescriptionOfContainerInNewContentElementWizard(BackendTes
}
$I->see('Some Description of the Container');
}

/**
* @param BackendTester $I
* @param PageTree $pageTree
* @throws \Exception
*/
public function canDisableContainerContentElementInNewContentElementWizard(BackendTester $I, PageTree $pageTree, PageTreeV13 $pageTreeV13)
{
$I->click('Page');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
$I->waitForElement('#typo3-pagetree-tree .nodes .node');
$pageTree->openPath(['home', 'emptyPage']);
} else {
$pageTreeV13->openPath(['home', 'emptyPage']);
}
$newContentElementLabel = $I->getNewContentElementLabel();
$I->wait(0.2);
$I->switchToContentFrame();
$I->waitForText($newContentElementLabel);
$I->executeJS("document.querySelector('typo3-backend-new-content-element-wizard-button').click()");
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('container')");
$I->wait(0.5);
$I->see('2 Column Container With Header');
$I->dontSee('1 Column');
}
}
Loading