Skip to content

Commit 41f163c

Browse files
committed
MC-3235: Add Missing P0-P1 MFTF Tests For Block
1 parent ac1eae1 commit 41f163c

File tree

3 files changed

+266
-11
lines changed

3 files changed

+266
-11
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/ContentTypeBlockActionGroup.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
<seeElement selector="{{BlockOnStage.title(index,block.title)}}" stepKey="seeOptionMenuTitle"/>
3737
<see selector="{{BlockOnStage.content(index)}}" userInput="{{block.content}}" stepKey="seeBlockContentOnStage"/>
3838
</actionGroup>
39+
<actionGroup name="verifyBlockOnStorefront">
40+
<arguments>
41+
<argument name="block"/>
42+
<argument name="index" defaultValue="1" type="string"/>
43+
</arguments>
44+
<waitForPageLoad stepKey="waitForAnimation" time="30"/>
45+
<see selector="{{BlockOnStorefront.textContent(index, block.content)}}" stepKey="seeBlockContentOnCmsStage"/>
46+
</actionGroup>
3947
<actionGroup name="verifyVerticalAlignmentBottomInBlock">
4048
<arguments>
4149
<argument name="block" defaultValue="BlockOnStorefront"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<element name="notHidden" type="text" selector="(//div[@data-role='block'])[{{arg1}}][not(contains(@style, 'display: none'))]" parameterized="true"/>
5252
<element name="hr" type="button" selector="(//div[@data-role='block'])[{{arg1}}]/hr" parameterized="true"/>
5353
<element name="empty" type="text" selector="//div[@data-role='block'][{{arg1}}][not(*)]" parameterized="true"/>
54+
<element name="textContent" type="text" selector="(//div[@data-role='block'])[{{arg1}}]//div[contains(text(),'{{arg2}}')]" parameterized="true"/>
5455
<!-- Advanced Configuration -->
5556
<element name="alignment" type="text" selector="(//div[@data-role='block'])[{{arg1}}][contains(@style,'text-align: {{arg2}};')]" parameterized="true"/>
5657
<element name="noAlignment" type="text" selector="(//div[@data-role='block'])[{{arg1}}][not(contains(@style,'text-align:'))]" parameterized="true"/>

0 commit comments

Comments
 (0)