Skip to content

Commit 48c397c

Browse files
committed
[TASK] provide test for custom backend template
Relates to: #563
1 parent d0919f4 commit 48c397c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,21 @@ public function canSeeContainerColumnTitleForDifferentContainers(BackendTester $
484484
$I->see('2-cols-right');
485485
}
486486

487+
public function canSeeCustomBackendTemplate(BackendTester $I, PageTree $pageTree, PageTreeV13 $pageTreeV13): void
488+
{
489+
$I->click('Page');
490+
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
491+
$I->waitForElement('#typo3-pagetree-tree .nodes .node');
492+
$pageTree->openPath(['home', 'pageWithDifferentContainers']);
493+
} else {
494+
$pageTreeV13->openPath(['home', 'pageWithDifferentContainers']);
495+
}
496+
$I->wait(0.2);
497+
$I->switchToContentFrame();
498+
$I->waitForElement('#tx-container-example-custom-backend-template');
499+
$I->see('custom backend template');
500+
}
501+
487502
/**
488503
* @param BackendTester $I
489504
* @param PageTree $pageTree

0 commit comments

Comments
 (0)