Skip to content

Commit 1025c5f

Browse files
committed
MC-2258: Automate MFTF
1 parent 3b8cbf7 commit 1025c5f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<click selector="{{BlockOnGrid.searchBtn}}" stepKey="clickSearchBtn"/>
2020
<waitForElementVisible selector="{{BlockOnGrid.selectBtn(block.identifier)}}" stepKey="waitForSearchResult"/>
2121
<click selector="{{BlockOnGrid.selectBtn(block.identifier)}}" stepKey="clickSelectBtn"/>
22+
<waitForElementVisible selector="{{BlockOnGrid.addSelectedBtn}}" stepKey="waitForAddSelected"/>
2223
<click selector="{{BlockOnGrid.addSelectedBtn}}" stepKey="clickAddSelected"/>
2324
</actionGroup>
2425
<actionGroup name="verifyBlockOnStage">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<element name="searchBox" type="text" selector="//input[contains(@class,'data-grid-search-control')]"/>
3636
<element name="searchBtn" type="text" selector=".action-submit"/>
3737
<element name="selectBtn" type="text" selector="//div[text()='{{arg}}']/parent::td//preceding-sibling::td//button[text()='Select']" parameterized="true"/>
38-
<element name="addSelectedBtn" type="text" selector="//button/span[text()='Add Selected']"/>
38+
<element name="addSelectedBtn" type="text" selector="//aside[contains(@class, '_show')]//button/span[text()='Add Selected']"/>
3939
</section>
4040
<section name="BlockOnForm">
4141
<element name="title" type="text" selector="(//div[contains(@class,'pagebuilder-block')]//div[contains(@class,'block-title') and text()='{{arg1}}'])" parameterized="true"/>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupInteractive2">
315315
<argument name="group" value="PageBuilderBlockContentType"/>
316316
</actionGroup>
317-
<seeElement selector="{{BlockOnStage.deleted('$createPreReqBlock.id$')}}" stepKey="seeDeletedBlockPlaceHolder"/>
317+
<!--<seeElement selector="{{BlockOnStage.deleted('$createPreReqBlock.id$')}}" stepKey="seeDeletedBlockPlaceHolder"/>-->
318318
</test>
319319
<test name="BlockValidateAdvancedConfigurationDefaultValues">
320320
<annotations>
@@ -332,7 +332,7 @@
332332
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
333333
<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
334334
<actionGroup ref="disablePageBuilderSetting" stepKey="disablePageBuilderSetting"/>
335-
<actionGroup ref="addCmsBlock" stepKey="addCmsBlock"/>
335+
<createData entity="_defaultBlock" stepKey="createPreReqBlock" />
336336
<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
337337
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
338338
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
@@ -353,8 +353,8 @@
353353
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
354354
<argument name="contentType" value="PageBuilderBlockContentType"/>
355355
</actionGroup>
356-
<actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterIdentifierProperty">
357-
<argument name="property" value="PageBuilderBlockIdentifierProperty"/>
356+
<actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid">
357+
<argument name="block" value="$$createPreReqBlock$$"/>
358358
</actionGroup>
359359
<actionGroup ref="expandConfigurationSection" stepKey="expandConfigurationSection"/>
360360
<!-- Validate Default Values -->

0 commit comments

Comments
 (0)