Skip to content

Commit c3630c9

Browse files
🔃 [Magento Community Engineering] Community Contributions - 2.4-develop daily delivery
Accepted Community Pull Requests: - #25797: MFTF: Extract Action Groups to separate files - magento/module-ui (by @lbajsarowicz) - #25802: MFTF: Extract Action Groups to separate files - magento/module-store (by @lbajsarowicz) - #25818: MFTF: Extract Action Groups to separate files - magento/module-newsletter (by @lbajsarowicz) - #25823: MFTF: Extract Action Groups to separate files - magento/module-email (by @lbajsarowicz) - #25825: MFTF: Extract Action Groups to separate files - magento/module-downloadable (by @lbajsarowicz) - #25830: MFTF: Extract Action Groups to separate files - magento/module-configurable-product (by @lbajsarowicz) - #25841: MFTF: Extract Action Groups to separate files - magento/module-checkout (by @lbajsarowicz) - #25836: MFTF: Extract Action Groups to separate files - magento/module-cms (by @lbajsarowicz) - #25831: MFTF: Extract Action Groups to separate files - magento/module-config (by @lbajsarowicz) - #25842: MFTF: Extract Action Groups to separate files - magento/module-catalog-search (by @lbajsarowicz) - #25844: MFTF: Extract Action Groups to separate files - magento/module-catalog-rule (by @lbajsarowicz) - #25845: MFTF: Extract Action Groups to separate files - magento/module-catalog-inventory (by @lbajsarowicz) - #25846: MFTF: Extract Action Groups to separate files - magento/module-catalog-import-export (by @lbajsarowicz) - #25815: MFTF: Extract Action Groups to separate files - magento/module-persistent (by @lbajsarowicz) - #25819: MFTF: Extract Action Groups to separate files - magento/module-multishipping (by @lbajsarowicz) - #25799: MFTF: Extract Action Groups to separate files - magento/module-tax (by @lbajsarowicz) - #25784: MFTF: Extract Action Groups to separate files - magento/module-braintree (by @lbajsarowicz) - #25829: MFTF: Extract Action Groups to separate files - magento/module-currency-symbol (by @lbajsarowicz) - #25813: MFTF: Extract Action Groups to separate files - magento/module-product-video (by @lbajsarowicz) - #25816: MFTF: Extract Action Groups to separate files - magento/module-paypal (by @lbajsarowicz) - #25817: MFTF: Replace redundant Action Group with proper one - magento/module-page-cache (by @lbajsarowicz) - #25804: MFTF: Extract Action Groups to separate files - magento/module-search (by @lbajsarowicz) - #25793: MFTF: Extract Action Groups to separate files - magento/module-user (by @lbajsarowicz) - #25787: MFTF: Extract Action Groups to separate files - magento/module-bundle (by @lbajsarowicz) - #25800: MFTF: Extract Action Groups to separate files - magento/module-swatches (by @lbajsarowicz) - #25788: MFTF: Extract Action Groups to separate files - magento/module-wishlist (by @lbajsarowicz) - #25783: MFTF: Extract Action Groups to separate files - magento/module-backup (by @lbajsarowicz) - #25821: MFTF: Extract Action Groups to separate files - magento/module-grouped-product (by @lbajsarowicz) - #25794: MFTF: Extract Action Groups to separate files - magento/module-url-rewrite (by @lbajsarowicz)
2 parents 2863caa + fed9b76 commit c3630c9

File tree

1,387 files changed

+18730
-13477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,387 files changed

+18730
-13477
lines changed

app/code/Magento/Backend/Test/Mftf/Test/AdminDashboardWithChartsChart.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<comment userInput="Add product to the shopping cart" stepKey="addProductToCart"/>
5555
<amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="navigateToSimpleProductPage"/>
5656
<waitForPageLoad stepKey="waitForProductPageLoad"/>
57-
<actionGroup ref="addToCartFromStorefrontProductPage" stepKey="addToCartFromStorefrontProductPage">
57+
<actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">
5858
<argument name="productName" value="$$createProduct.name$$"/>
5959
</actionGroup>
6060
<!--Go to Checkout-->
@@ -76,7 +76,7 @@
7676
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
7777
<!-- Search for Order in the order grid -->
7878
<comment userInput="Search for Order in the order grid" stepKey="searchOrderInGrid"/>
79-
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
79+
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
8080
<argument name="orderId" value="$grabOrderNumber"/>
8181
</actionGroup>
8282
<waitForLoadingMaskToDisappear stepKey="waitForSearchingOrder"/>

app/code/Magento/Backup/Test/Mftf/ActionGroup/CreateBackupActionGroup.xml

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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="CreateDatabaseBackupActionGroup">
12+
<annotations>
13+
<description>Creates a Database Backup using provided Backup Entity.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="backup" defaultValue="DatabaseBackup"/>
17+
</arguments>
18+
19+
<click selector="{{AdminMainActionsSection.databaseBackup}}" stepKey="clickCreateBackupButton"/>
20+
<waitForElementVisible selector="{{AdminCreateBackupFormSection.backupNameField}}" stepKey="waitForForm"/>
21+
<fillField selector="{{AdminCreateBackupFormSection.backupNameField}}" userInput="{{backup.name}}" stepKey="fillBackupName"/>
22+
<click selector="{{AdminCreateBackupFormSection.ok}}" stepKey="clickOk"/>
23+
<waitForPageLoad time="120" stepKey="waitForBackupProcess"/>
24+
<see selector="{{AdminMessagesSection.success}}" userInput="You created the database backup." stepKey="seeSuccessMessage"/>
25+
<see selector="{{AdminGridTableSection.backupNameColumn}}" userInput="{{backup.name}}" stepKey="seeBackupInGrid"/>
26+
<see selector="{{AdminGridTableSection.backupTypeByName(backup.name)}}" userInput="{{backup.type}}" stepKey="seeBackupType"/>
27+
</actionGroup>
28+
</actionGroups>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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="CreateMediaBackupActionGroup">
12+
<annotations>
13+
<description>Creates a Media Backup using provided Backup Entity.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="backup" defaultValue="MediaBackup"/>
17+
</arguments>
18+
19+
<click selector="{{AdminMainActionsSection.mediaBackup}}" stepKey="clickCreateBackupButton"/>
20+
<waitForElementVisible selector="{{AdminCreateBackupFormSection.backupNameField}}" stepKey="waitForForm"/>
21+
<fillField selector="{{AdminCreateBackupFormSection.backupNameField}}" userInput="{{backup.name}}" stepKey="fillBackupName"/>
22+
<click selector="{{AdminCreateBackupFormSection.ok}}" stepKey="clickOk"/>
23+
<waitForPageLoad time="120" stepKey="waitForBackupProcess"/>
24+
<see selector="{{AdminMessagesSection.success}}" userInput="You created the database and media backup." stepKey="seeSuccessMessage"/>
25+
<see selector="{{AdminGridTableSection.backupNameColumn}}" userInput="{{backup.name}}" stepKey="seeBackupInGrid"/>
26+
<see selector="{{AdminGridTableSection.backupTypeByName(backup.name)}}" userInput="{{backup.type}}" stepKey="seeBackupType"/>
27+
</actionGroup>
28+
</actionGroups>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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="CreateSystemBackupActionGroup">
12+
<annotations>
13+
<description>Creates a System Backup using provided Backup Entity.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="backup" defaultValue="SystemBackup"/>
17+
</arguments>
18+
19+
<click selector="{{AdminMainActionsSection.systemBackup}}" stepKey="clickCreateBackupButton"/>
20+
<waitForElementVisible selector="{{AdminCreateBackupFormSection.backupNameField}}" stepKey="waitForForm"/>
21+
<fillField selector="{{AdminCreateBackupFormSection.backupNameField}}" userInput="{{backup.name}}" stepKey="fillBackupName"/>
22+
<click selector="{{AdminCreateBackupFormSection.ok}}" stepKey="clickOk"/>
23+
<waitForElementNotVisible selector=".loading-mask" time="300" stepKey="waitForBackupProcess"/>
24+
<see selector="{{AdminMessagesSection.success}}" userInput="You created the system backup." stepKey="seeSuccessMessage"/>
25+
<see selector="{{AdminGridTableSection.backupNameColumn}}" userInput="{{backup.name}}" stepKey="seeBackupInGrid"/>
26+
<see selector="{{AdminGridTableSection.backupTypeByName(backup.name)}}" userInput="{{backup.type}}" stepKey="seeBackupType"/>
27+
</actionGroup>
28+
</actionGroups>

app/code/Magento/Backup/Test/Mftf/Test/AdminCreateAndDeleteBackupsTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
<waitForPageLoad stepKey="waitForBackupPage"/>
3131

3232
<!--Create system backup-->
33-
<actionGroup ref="createSystemBackup" stepKey="createSystemBackup"/>
33+
<actionGroup ref="CreateSystemBackupActionGroup" stepKey="createSystemBackup"/>
3434

3535
<!--Create database/media backup-->
36-
<actionGroup ref="createMediaBackup" stepKey="createMediaBackup"/>
36+
<actionGroup ref="CreateMediaBackupActionGroup" stepKey="createMediaBackup"/>
3737

3838
<!--Create database backup-->
39-
<actionGroup ref="createDatabaseBackup" stepKey="createDatabaseBackup"/>
39+
<actionGroup ref="CreateDatabaseBackupActionGroup" stepKey="createDatabaseBackup"/>
4040

4141
<!--Delete system backup-->
4242
<actionGroup ref="deleteBackup" stepKey="deleteSystemBackup">
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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="AdminCreateNewRoleActionGroup">
12+
<annotations>
13+
<description>Creates a User Role using the provided Data.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="role" type="string" defaultValue=""/>
17+
<argument name="resource" type="string" defaultValue="All"/>
18+
<argument name="scope" type="string" defaultValue="Custom"/>
19+
<argument name="websites" type="string" defaultValue="Main Website"/>
20+
</arguments>
21+
22+
<click selector="{{AdminCreateRoleSection.create}}" stepKey="clickToAddNewRole"/>
23+
<fillField selector="{{AdminCreateRoleSection.name}}" userInput="{{role.name}}" stepKey="setRoleName"/>
24+
<fillField stepKey="setPassword" selector="{{AdminCreateRoleSection.password}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
25+
<click selector="{{AdminCreateRoleSection.roleResources}}" stepKey="clickToOpenRoleResources"/>
26+
<waitForPageLoad stepKey="waitForRoleResourcePage" time="5"/>
27+
<click stepKey="checkSales" selector="//a[text()='Sales']"/>
28+
<click selector="{{AdminCreateRoleSection.save}}" stepKey="clickToSaveRole"/>
29+
<waitForPageLoad stepKey="waitForPageLoad" time="10"/>
30+
<see userInput="You saved the role." stepKey="seeSuccessMessage"/>
31+
</actionGroup>
32+
</actionGroups>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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="AdminDeleteRoleActionGroup">
12+
<annotations>
13+
<description>Deletes a User Role that contains the text 'Role'. PLEASE NOTE: The Action Group values are Hardcoded.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="role" defaultValue=""/>
17+
</arguments>
18+
19+
<click stepKey="clickOnRole" selector="{{AdminDeleteRoleSection.theRole}}"/>
20+
<fillField stepKey="TypeCurrentPassword" selector="{{AdminDeleteRoleSection.current_pass}}" userInput="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
21+
<click stepKey="clickToDeleteRole" selector="{{AdminDeleteRoleSection.delete}}"/>
22+
<waitForAjaxLoad stepKey="waitForDeleteConfirmationPopup" time="5"/>
23+
<click stepKey="clickToConfirm" selector="{{AdminDeleteRoleSection.confirm}}"/>
24+
<waitForPageLoad stepKey="waitForPageLoad" time="10"/>
25+
<see stepKey="seeSuccessMessage" userInput="You deleted the role."/>
26+
</actionGroup>
27+
</actionGroups>

app/code/Magento/Braintree/Test/Mftf/ActionGroup/AdminRoleActionGroup.xml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)