Skip to content

Commit eb47b8f

Browse files
committed
[TASK] Test for disabled in new Content Element Wizard
Relates to: #661 Relates to: #633
1 parent acde4d8 commit eb47b8f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,4 +536,31 @@ public function canSeeDescriptionOfContainerInNewContentElementWizard(BackendTes
536536
}
537537
$I->see('Some Description of the Container');
538538
}
539+
540+
/**
541+
* @param BackendTester $I
542+
* @param PageTree $pageTree
543+
* @throws \Exception
544+
*/
545+
public function canDisableContainerContentElementInNewContentElementWizard(BackendTester $I, PageTree $pageTree, PageTreeV13 $pageTreeV13)
546+
{
547+
$I->click('Page');
548+
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() < 13) {
549+
$I->waitForElement('#typo3-pagetree-tree .nodes .node');
550+
$pageTree->openPath(['home', 'emptyPage']);
551+
} else {
552+
$pageTreeV13->openPath(['home', 'emptyPage']);
553+
}
554+
$newContentElementLabel = $I->getNewContentElementLabel();
555+
$I->wait(0.2);
556+
$I->switchToContentFrame();
557+
$I->waitForText($newContentElementLabel);
558+
$I->executeJS("document.querySelector('typo3-backend-new-content-element-wizard-button').click()");
559+
$I->switchToIFrame();
560+
$I->waitForElement('.modal-dialog');
561+
$I->executeJS("document.querySelector('" . $I->getNewRecordWizardSelector() . "').filter('container')");
562+
$I->wait(0.5);
563+
$I->see('2 Column Container With Header');
564+
$I->dontSee('1 Column');
565+
}
539566
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"require-dev": {
32-
"b13/container-example": "dev-master",
32+
"b13/container-example": "dev-wip",
3333
"typo3/cms-install": "^11.5 || ^12.4 || ^13.4 || ^14.0",
3434
"typo3/cms-fluid-styled-content": "^11.5 || ^12.4 || ^13.4 || ^14.0",
3535
"typo3/cms-info": "^11.5 || ^12.4 || ^13.4 || ^14.0",

0 commit comments

Comments
 (0)