Skip to content

Commit f07b6d2

Browse files
committed
MAGETWO-90443: Allow inline editing of Heading from stage
- updates to tests from mainline for new inline Heading edit behavior
1 parent 47a150e commit f07b6d2

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/PageBuilder/Test/AdminPageBuilderCommonTest.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,14 @@
256256
<testCaseId value="MAGETWO-91322"/>
257257
<group value="pagebuilder"/>
258258
<group value="pagebuilder-common"/>
259+
<group value="pagebuilder-heading"/>
259260
</annotations>
260261
<before>
261262
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
262-
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
263-
<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
264263
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
265264
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
266265
</before>
267266
<after>
268-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
269267
<actionGroup ref="logout" stepKey="logout"/>
270268
</after>
271269
<!-- Add 2nd Row and Heading-->
@@ -278,6 +276,10 @@
278276
<argument name="containerTargetType" value="PageBuilderRowContentBlock"/>
279277
<argument name="containerTargetIndex" value="2"/>
280278
</actionGroup>
279+
<scrollTo selector="div.pagebuilder-header" x="0" y="-100" stepKey="scrollToTop"/>
280+
<actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading">
281+
<argument name="index" value="1"/>
282+
</actionGroup>
281283
<!-- Configure Heading -->
282284
<comment userInput="Configure Heading" stepKey="commentEditHeading1"/>
283285
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
@@ -475,23 +477,24 @@
475477
<testCaseId value="MAGETWO-91320"/>
476478
<group value="pagebuilder"/>
477479
<group value="pagebuilder-common"/>
480+
<group value="pagebuilder-heading"/>
478481
</annotations>
479482
<before>
480483
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
481-
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
482-
<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
483484
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
484485
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
485486
</before>
486487
<after>
487-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
488488
<actionGroup ref="logout" stepKey="logout"/>
489489
</after>
490490
<!-- Add Heading -->
491491
<comment userInput="Add Heading" stepKey="commentAddHeading"/>
492492
<actionGroup ref="dragContentBlockToStage" stepKey="dragContentBlockToStage">
493493
<argument name="contentBlockType" value="PageBuilderHeadingContentBlock"/>
494494
</actionGroup>
495+
<actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading">
496+
<argument name="index" value="1"/>
497+
</actionGroup>
495498
<!-- Configure Heading -->
496499
<comment userInput="Configure Heading" stepKey="commentHeading"/>
497500
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
@@ -531,23 +534,24 @@
531534
<testCaseId value="MAGETWO-91321"/>
532535
<group value="pagebuilder"/>
533536
<group value="pagebuilder-common"/>
537+
<group value="pagebuilder-heading"/>
534538
</annotations>
535539
<before>
536540
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
537-
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
538-
<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
539541
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
540542
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
541543
</before>
542544
<after>
543-
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
544545
<actionGroup ref="logout" stepKey="logout"/>
545546
</after>
546547
<!-- Add Heading -->
547548
<comment userInput="Add Heading" stepKey="commentAddHeading"/>
548549
<actionGroup ref="dragContentBlockToStage" stepKey="dragContentBlockToStage">
549550
<argument name="contentBlockType" value="PageBuilderHeadingContentBlock"/>
550551
</actionGroup>
552+
<actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading">
553+
<argument name="index" value="1"/>
554+
</actionGroup>
551555
<!-- Configure Heading -->
552556
<comment userInput="Configure Heading" stepKey="commentEditHeading"/>
553557
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">

0 commit comments

Comments
 (0)