Skip to content

Commit c4eb2be

Browse files
committed
MC-2258: Automate MFTF
1 parent d9028fe commit c4eb2be

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
1111
<test name="InitialStatusBlock">
1212
<annotations>
13-
<features value="Pagebuilder"/>
13+
<features value="PageBuilder"/>
1414
<stories value="Block"/>
1515
<title value="Block - Initial Status"/>
1616
<description value="Verify that Static Block is refactor and new Block preview is applied."/>
@@ -49,7 +49,7 @@
4949
</test>
5050
<test name="AddBlockToCmsPage">
5151
<annotations>
52-
<features value="Pagebuilder"/>
52+
<features value="PageBuilder"/>
5353
<stories value="Block"/>
5454
<title value="Add Block to CMS Page"/>
5555
<description value="Verify that admin are able to add a block instance to Block Content Block and see it on frontend"/>
@@ -101,7 +101,7 @@
101101
</test>
102102
<test name="BlockGetUpdated">
103103
<annotations>
104-
<features value="Pagebuilder"/>
104+
<features value="PageBuilder"/>
105105
<stories value="Block"/>
106106
<title value="Block Content Block get updated"/>
107107
<description value="Verify that Block Content Block get updated from Block entities"/>
@@ -178,7 +178,7 @@
178178
</test>
179179
<test name="VerifyBlockDisabled">
180180
<annotations>
181-
<features value="Pagebuilder"/>
181+
<features value="PageBuilder"/>
182182
<stories value="Block"/>
183183
<title value="Block - Verify disabled block does not show on the stage or on storefront" />
184184
<description value="Verify that disabled block instance is not rendered on the stage or on the storefront" />
@@ -239,7 +239,7 @@
239239
</test>
240240
<test name="BlockDelete">
241241
<annotations>
242-
<features value="Pagebuilder"/>
242+
<features value="PageBuilder"/>
243243
<stories value="Block"/>
244244
<title value="Block - Delete Block"/>
245245
<description value="A user should be able to delete an Block content type. Verify on Stage amd Storefront."/>
@@ -278,7 +278,7 @@
278278
</test>
279279
<test name="DisplayingDeletedBlockOnStage">
280280
<annotations>
281-
<features value="Pagebuilder"/>
281+
<features value="PageBuilder"/>
282282
<stories value="Block"/>
283283
<title value="Block - Displaying deleted block on Stage"/>
284284
<description value="A user should be able to see that block is deleted on Stage."/>

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder" after="addCmsBlock"/>
8686
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
8787
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
88+
<createData entity="_defaultBlock" stepKey="createPreReqBlock" />
8889
</before>
8990
<after>
9091
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
@@ -114,11 +115,8 @@
114115
<argument name="containerTargetType" value="PageBuilderTabContentType"/>
115116
<argument name="containerTargetIndex" value="1" />
116117
</actionGroup>
117-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
118-
<argument name="contentType" value="PageBuilderBlockContentType"/>
119-
</actionGroup>
120-
<actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterIdentifierProperty">
121-
<argument name="property" value="PageBuilderBlockIdentifierProperty"/>
118+
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid">
119+
<argument name="block" value="$$createPreReqBlock$$"/>
122120
</actionGroup>
123121
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
124122
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>

0 commit comments

Comments
 (0)