@@ -33,7 +33,7 @@ public function _before(BackendTester $I)
3333 */
3434 public function canCreateChildIn2ColsContainerWithNoContentDefenderRestrictionsDefined (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 ): void
3535 {
36- $ I ->click ( ' Page ' );
36+ $ I ->clickLayoutModuleButton ( );
3737 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
3838 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
3939 $ pageTree ->openPath (['home ' , 'pageWithDifferentContainers ' ]);
@@ -46,7 +46,7 @@ public function canCreateChildIn2ColsContainerWithNoContentDefenderRestrictionsD
4646 $ colPosSelector = '#element-tt_content-300 [data-colpos=" ' . $ dataColPos . '"] ' ;
4747 $ I ->clickNewContentElement ($ colPosSelector );
4848 $ I ->switchToIFrame ();
49- $ I ->waitForElement ( ' .modal-dialog ' );
49+ $ I ->waitForModal ( );
5050 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () > 12 ) {
5151 $ I ->executeJS ("document.querySelector(' " . $ I ->getNewRecordWizardSelector () . "').shadowRoot.querySelector('button[data-identifier= \"default \"]').click() " );
5252 }
@@ -60,7 +60,7 @@ public function canCreateChildIn2ColsContainerWithNoContentDefenderRestrictionsD
6060 */
6161 public function doNotSeeNotAllowedContentElementsInNewContentElementWizard (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 ): void
6262 {
63- $ I ->click ( ' Page ' );
63+ $ I ->clickLayoutModuleButton ( );
6464 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
6565 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
6666 $ pageTree ->openPath (['home ' , 'pageWithContainer-3 ' ]);
@@ -73,7 +73,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizard(Backe
7373 $ colPosSelector = '#element-tt_content-800 [data-colpos=" ' . $ dataColPos . '"] ' ;
7474 $ I ->clickNewContentElement ($ colPosSelector );
7575 $ I ->switchToIFrame ();
76- $ I ->waitForElement ( ' .modal-dialog ' );
76+ $ I ->waitForModal ( );
7777 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () > 12 ) {
7878 $ I ->executeJS ("document.querySelector(' " . $ I ->getNewRecordWizardSelector () . "').shadowRoot.querySelector('button[data-identifier= \"default \"]').click() " );
7979 }
@@ -86,7 +86,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizard(Backe
8686 */
8787 public function doNotSeeNotAllowedContentElementsInNewContentElementWizardTriggeredByContextMenu (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 ): void
8888 {
89- $ I ->click ( ' Page ' );
89+ $ I ->clickLayoutModuleButton ( );
9090 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
9191 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
9292 $ pageTree ->openPath (['home ' , 'pageWithContainer-3 ' ]);
@@ -127,7 +127,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizardTrigge
127127 }
128128
129129 $ I ->switchToIFrame ();
130- $ I ->waitForElement ( ' .modal-dialog ' );
130+ $ I ->waitForModal ( );
131131 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () > 12 ) {
132132 $ I ->executeJS ("document.querySelector(' " . $ I ->getNewRecordWizardSelector () . "').shadowRoot.querySelector('button[data-identifier= \"default \"]').click() " );
133133 }
@@ -140,7 +140,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizardTrigge
140140 */
141141 public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewElement (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
142142 {
143- $ I ->click ( ' Page ' );
143+ $ I ->clickLayoutModuleButton ( );
144144 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
145145 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
146146 $ pageTree ->openPath (['home ' , 'pageWithContainer-4 ' ]);
@@ -153,7 +153,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewEl
153153 $ colPosSelector = '#element-tt_content-801 [data-colpos=" ' . $ dataColPos . '"] ' ;
154154 $ I ->clickNewContentElement ($ colPosSelector );
155155 $ I ->switchToIFrame ();
156- $ I ->waitForElement ( ' .modal-dialog ' );
156+ $ I ->waitForModal ( );
157157 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () > 12 ) {
158158 $ I ->executeJS ("document.querySelector(' " . $ I ->getNewRecordWizardSelector () . "').shadowRoot.querySelector('button[data-identifier= \"default \"]').click() " );
159159 }
@@ -179,7 +179,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewEl
179179 */
180180 public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenEditAnElement (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
181181 {
182- $ I ->click ( ' Page ' );
182+ $ I ->clickLayoutModuleButton ( );
183183 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
184184 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
185185 $ pageTree ->openPath (['home ' , 'contentTCASelectCtype ' ]);
@@ -200,7 +200,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenEditAnEleme
200200 */
201201 public function canSeeNewContentButtonIfMaxitemsIsNotReached (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
202202 {
203- $ I ->click ( ' Page ' );
203+ $ I ->clickLayoutModuleButton ( );
204204 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
205205 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
206206 $ pageTree ->openPath (['home ' , 'contentDefenderMaxitems ' ]);
@@ -219,7 +219,7 @@ public function canSeeNewContentButtonIfMaxitemsIsNotReached(BackendTester $I, P
219219 */
220220 public function canNotSeeNewContentButtonIfMaxitemsIsReached (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
221221 {
222- $ I ->click ( ' Page ' );
222+ $ I ->clickLayoutModuleButton ( );
223223 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
224224 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
225225 $ pageTree ->openPath (['home ' , 'contentDefenderMaxitems ' ]);
@@ -239,7 +239,7 @@ public function canNotSeeNewContentButtonIfMaxitemsIsReached(BackendTester $I, P
239239 */
240240 public function canCreateNewChildInContainerIfMaxitemsIsReachedInOtherContainer (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
241241 {
242- $ I ->click ( ' Page ' );
242+ $ I ->clickLayoutModuleButton ( );
243243 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
244244 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
245245 $ pageTree ->openPath (['home ' , 'contentDefenderMaxitems ' ]);
@@ -252,7 +252,7 @@ public function canCreateNewChildInContainerIfMaxitemsIsReachedInOtherContainer(
252252 $ colPosSelector = '#element-tt_content-402 [data-colpos=" ' . $ dataColPos . '"] ' ;
253253 $ I ->clickNewContentElement ($ colPosSelector );
254254 $ I ->switchToIFrame ();
255- $ I ->waitForElement ( ' .modal-dialog ' );
255+ $ I ->waitForModal ( );
256256 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () > 12 ) {
257257 $ I ->executeJS ("document.querySelector(' " . $ I ->getNewRecordWizardSelector () . "').shadowRoot.querySelector('button[data-identifier= \"default \"]').click() " );
258258 }
@@ -277,7 +277,7 @@ public function canCreateNewChildInContainerIfMaxitemsIsReachedInOtherContainer(
277277 */
278278 public function seeEditDocumentWhenAddingChildrenToColposWhereOnlyHeaderIsAllowed (BackendTester $ I , PageTree $ pageTree , PageTreeV13 $ pageTreeV13 )
279279 {
280- $ I ->click ( ' Page ' );
280+ $ I ->clickLayoutModuleButton ( );
281281 if (GeneralUtility::makeInstance (Typo3Version::class)->getMajorVersion () < 13 ) {
282282 $ I ->waitForElement ('#typo3-pagetree-tree .nodes .node ' );
283283 $ pageTree ->openPath (['home ' , 'pageWithDifferentContainers ' ]);
0 commit comments