Skip to content

Commit

Permalink
[BUGFIX] description of container in new CE wizard
Browse files Browse the repository at this point in the history
Fixes: #535
  • Loading branch information
achimfritz committed Oct 15, 2024
1 parent 5a5007b commit f99b06f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Tca/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function configureContainer(ContainerConfiguration $containerConfiguratio
'value' => $containerConfiguration->getCType(),
'icon' => $containerConfiguration->getCType(),
'group' => $containerConfiguration->getGroup(),
'description' => $containerConfiguration->getDescription(),
]
);
} else {
Expand Down
36 changes: 36 additions & 0 deletions Tests/Acceptance/Backend/LayoutCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,4 +491,40 @@ public function canSeeContainerColumnTitleForDifferentContainers(BackendTester $
$I->see('2-cols-left');
$I->see('2-cols-right');
}

/**
* @param BackendTester $I
* @param PageTree $pageTree
* @throws \Exception
*/
public function canSeeDescriptionOfContainerInNewContentElementWizard(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']);
}
$I->wait(0.2);
$I->switchToContentFrame();
$newContentElementLabel = $I->getNewContentElementLabel();
$I->waitForText($newContentElementLabel);
$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
if ($typo3Version->getMajorVersion() < 12) {
$I->click($newContentElementLabel);
} else {
$I->executeJS("document.querySelector('typo3-backend-new-content-element-wizard-button').click()");
}
$I->switchToIFrame();
$I->waitForElement('.modal-dialog');

if ($typo3Version->getMajorVersion() < 12) {
$I->click('Container');
} else {
$I->executeJS("document.querySelector('" . $this->getNewRecordWizardSelector() . "').filter('container')");
$I->wait(0.5);
}
$I->see('Some Description of the Container');
}
}

0 comments on commit f99b06f

Please sign in to comment.