Skip to content

Commit cff4ba3

Browse files
author
joiecaquicla
committed
magento2/magento2-page-builder#703: Automate MC-4985, MC-4990, MC-30862 - modified mc-4990 and added new action group
1 parent 1a3c023 commit cff4ba3

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="NavigateToCreatedCMSPageWithEnabledSecretKeyActionGroup" extends="NavigateToCreatedCMSPageActionGroup">
12+
<annotations>
13+
<description>Goes to the Admin CMS Pages page. </description>
14+
</annotations>
15+
16+
<remove keyForRemoval="navigateToCMSPagesGrid"/>
17+
</actionGroup>
18+
</actionGroups>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderBannerCommonTest/BannerUploadImageWithSecretKeyEnabledTest.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@
6868
</actionGroup>
6969
<reloadPage stepKey="reloadPage"/>
7070

71-
<!-- Upload Image to Banner and Verify -->
71+
<!-- Navigate back to the created CMS page, upload image to Banner and Verify -->
72+
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToContentPagesPage">
73+
<argument name="menuUiId" value="{{AdminMenuContent.dataUiId}}"/>
74+
<argument name="submenuUiId" value="{{AdminMenuContentElementsPages.dataUiId}}"/>
75+
</actionGroup>
76+
<actionGroup ref="NavigateToCreatedCMSPageWithEnabledSecretKeyActionGroup" stepKey="navigateToContentCreatedCMSPage1">
77+
<argument name="CMSPage" value="$$createCMSPage$$"/>
78+
</actionGroup>
7279
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
7380
<actionGroup ref="verifyUploadImageButtons" stepKey="verifyUploadImageButtons">
7481
<argument name="contentType" value="PageBuilderBannerContentType"/>

0 commit comments

Comments
 (0)