Skip to content

Commit 2a17e4b

Browse files
committed
MC-3308: Automate MFTF for MC-1416
1 parent 63ea117 commit 2a17e4b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderTextSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<element name="base" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]/div" parameterized="true"/>
1212
<element name="textAreaText" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]/div[.='{{arg2}}']" parameterized="true"/>
1313
<element name="textAreaTextContains" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]/div[contains(.,'{{arg2}}')]" parameterized="true"/>
14-
<element name="text" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]/div//p[contains(.,'{{arg2}}')]/span" parameterized="true"/>
14+
<element name="text" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]/div//p[contains(.,'{{arg2}}')]" parameterized="true"/>
1515
<element name="placeholder" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg1}}]//div[contains(@class, 'placeholder-text') and text()='Edit Text']" parameterized="true"/>
1616
<element name="tinymce" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg}}]//div[contains(@class, 'inline-wysiwyg')]" parameterized="true"/>
1717
<element name="importantStyle" type="text" selector="(//div[contains(@class,'pagebuilder-text')])[{{arg}}]//span[text()='Important']" parameterized="true"/>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@
761761
<argument name="padding" value="PageBuilderPaddingPropertyUnique"/>
762762
<argument name="index" value="1"/>
763763
</actionGroup>
764+
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/>
764765
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
765766
<argument name="contentType" value="PageBuilderTextContentType"/>
766767
</actionGroup>
@@ -882,9 +883,6 @@
882883
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
883884
<argument name="group" value="PageBuilderTextContentType"/>
884885
</actionGroup>
885-
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupText">
886-
<argument name="group" value="PageBuilderTextContentType"/>
887-
</actionGroup>
888886
<actionGroup ref="dragContentTypeToStage" stepKey="dragIntoStage">
889887
<argument name="contentType" value="PageBuilderTextContentType"/>
890888
</actionGroup>
@@ -922,6 +920,7 @@
922920
<argument name="property" value="PageBuilderPaddingPropertyUnique"/>
923921
</actionGroup>
924922
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
923+
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/>
925924
<!-- Duplicate and Validate Stage -->
926925
<comment userInput="Duplicate" stepKey="commentDuplicate"/>
927926
<actionGroup ref="duplicateContentType" stepKey="duplicateContentType">

0 commit comments

Comments
 (0)