Skip to content

Commit

Permalink
[TASK] provide test for custom backend template
Browse files Browse the repository at this point in the history
Relates to: #563
  • Loading branch information
achimfritz committed Feb 26, 2025
1 parent d0919f4 commit 48c397c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/Acceptance/Backend/LayoutCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,21 @@ public function canSeeContainerColumnTitleForDifferentContainers(BackendTester $
$I->see('2-cols-right');
}

public function canSeeCustomBackendTemplate(BackendTester $I, PageTree $pageTree, PageTreeV13 $pageTreeV13): void
{
$I->click('Page');
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
$I->waitForElement('#typo3-pagetree-tree .nodes .node');
$pageTree->openPath(['home', 'pageWithDifferentContainers']);
} else {
$pageTreeV13->openPath(['home', 'pageWithDifferentContainers']);
}
$I->wait(0.2);
$I->switchToContentFrame();
$I->waitForElement('#tx-container-example-custom-backend-template');
$I->see('custom backend template');
}

/**
* @param BackendTester $I
* @param PageTree $pageTree
Expand Down

0 comments on commit 48c397c

Please sign in to comment.