From 253818b5b0e42e53bdc57d63ddc9a770a38d61b2 Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Thu, 19 Mar 2026 14:09:38 +0100 Subject: [PATCH] [TASK] change label in tests --- Tests/Acceptance/Backend/ContentDefenderCest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/Acceptance/Backend/ContentDefenderCest.php b/Tests/Acceptance/Backend/ContentDefenderCest.php index c77d75bd..72e6b589 100644 --- a/Tests/Acceptance/Backend/ContentDefenderCest.php +++ b/Tests/Acceptance/Backend/ContentDefenderCest.php @@ -15,6 +15,7 @@ use B13\Container\Tests\Acceptance\Support\BackendTester; use B13\Container\Tests\Acceptance\Support\PageTree; use Codeception\Attribute\Group; +use TYPO3\CMS\Core\Information\Typo3Version; class ContentDefenderCest { @@ -155,7 +156,11 @@ public function canCreateNewChildInContainerIfMaxitemsIsReachedInOtherContainer( $I->waitForText('Header Only'); $I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').shadowRoot.querySelector('button[data-identifier=\"default_header\"]').click()"); $I->switchToContentFrame(); - $I->waitForText('Create new Page Content on page'); + if ($I->getTypo3MajorVersion() > 13 && (new Typo3Version())->getBranch() !== '14.1') { + $I->waitForText('Create new Header Only'); + } else { + $I->waitForText('Create new Page Content on page'); + } $I->seeElement('#EditDocumentController'); }