Skip to content

Commit 1101572

Browse files
Merge branch '2.4-develop' into commpr-10131-1006
2 parents 9a2c0a6 + 597e991 commit 1101572

File tree

5 files changed

+115
-11
lines changed

5 files changed

+115
-11
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontAssertStockStatusForDisplayOutOfStockEnabledTest">
12+
<annotations>
13+
<features value="Catalog"/>
14+
<stories value="Manage Out Of Stock products In Storefront"/>
15+
<title value="Ensure Catalog Display with 'Out of Stock Products' Enabled"/>
16+
<description value="Verifying catalog data when display out of stock products is enabled In Storefront"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="AC-6393"/>
19+
</annotations>
20+
<before>
21+
<!--Create Category-->
22+
<createData entity="CategoryB" stepKey="createCategory"/>
23+
<!--Create Simple Product-->
24+
<createData entity="productA" stepKey="createOutStockProduct">
25+
<requiredEntity createDataKey="createCategory"/>
26+
<field key="price">15.00</field>
27+
<field key="quantity">0</field>
28+
</createData>
29+
<createData entity="productA" stepKey="createProduct">
30+
<requiredEntity createDataKey="createCategory"/>
31+
<field key="price">20.00</field>
32+
<field key="quantity">0</field>
33+
</createData>
34+
<createData entity="productA" stepKey="createSimpleOutStockProduct">
35+
<requiredEntity createDataKey="createCategory"/>
36+
<field key="price">25.00</field>
37+
<field key="quantity">0</field>
38+
</createData>
39+
<createData entity="productA" stepKey="createProductNoQuantity">
40+
<requiredEntity createDataKey="createCategory"/>
41+
<field key="price">30.00</field>
42+
<field key="quantity">0</field>
43+
</createData>
44+
</before>
45+
<after>
46+
<!-- Set Magento back to default configuration -->
47+
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockDisable.path}} {{CatalogInventoryOptionsShowOutOfStockDisable.value}}" stepKey="setConfigShowOutOfStockFalse"/>
48+
<!-- Delete created entity -->
49+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
50+
<deleteData createDataKey="createOutStockProduct" stepKey="deleteFirstProduct"/>
51+
<deleteData createDataKey="createSimpleOutStockProduct" stepKey="deleteSecondProduct"/>
52+
<deleteData createDataKey="createProductNoQuantity" stepKey="deleteThirdProduct"/>
53+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
54+
<!-- Logout From Customer and Admin -->
55+
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
56+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
57+
</after>
58+
<!-- Step1: Login as admin -->
59+
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
60+
<!-- Step2: Stores - Configuration - Catalog - Inventory - Stock options - Enable display out of stock products to yes -->
61+
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockEnable.path}} {{CatalogInventoryOptionsShowOutOfStockEnable.value}}" stepKey="setConfigShowOutOfStockTrue"/>
62+
<!-- Step3: Clear cache and verify catalog on front end all categories -->
63+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
64+
<argument name="tags" value="config full_page"/>
65+
</actionGroup>
66+
<!-- Go to storefront category page -->
67+
<actionGroup ref="GoToStorefrontCategoryPageByParametersActionGroup" stepKey="GoToStorefrontCategoryPage3">
68+
<argument name="category" value="$$createCategory.custom_attributes[url_key]$$"/>
69+
<argument name="mode" value="list"/>
70+
<argument name="numOfProductsPerPage" value="10"/>
71+
<argument name="sortBy" value="price"/>
72+
<argument name="sort" value="desc"/>
73+
</actionGroup>
74+
<waitForText userInput="$$createProductNoQuantity.name$$" selector="{{StorefrontCategoryMainSection.lineProductName('1')}}" stepKey="seeFirstProductNameLine"/>
75+
<waitForText userInput="$$createSimpleOutStockProduct.name$$" selector="{{StorefrontCategoryMainSection.lineProductName('2')}}" stepKey="seeSecondProductNameLine"/>
76+
<waitForText userInput="$$createProduct.name$$" selector="{{StorefrontCategoryMainSection.lineProductName('3')}}" stepKey="seeThirdProductNameLine"/>
77+
<waitForText userInput="$$createOutStockProduct.name$$" selector="{{StorefrontCategoryMainSection.lineProductName('4')}}" stepKey="seeForthProductNameLine"/>
78+
<!-- Step4: Apply filters and verify catalog -->
79+
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToFirstProductPage">
80+
<argument name="productUrlKey" value="$createProductNoQuantity.custom_attributes[url_key]$"/>
81+
</actionGroup>
82+
<actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="seeFirstProductStatusInStoreFront">
83+
<argument name="productStockStatus" value="In Stock"/>
84+
</actionGroup>
85+
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToSecondProductPage">
86+
<argument name="productUrlKey" value="$createSimpleOutStockProduct.custom_attributes[url_key]$"/>
87+
</actionGroup>
88+
<actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="seeSecondProductStatusInStoreFront">
89+
<argument name="productStockStatus" value="In Stock"/>
90+
</actionGroup>
91+
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToThirdProductPage">
92+
<argument name="productUrlKey" value="$createProduct.custom_attributes[url_key]$"/>
93+
</actionGroup>
94+
<actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="seeThirdProductStatusInStoreFront">
95+
<argument name="productStockStatus" value="In Stock"/>
96+
</actionGroup>
97+
<actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="goToProductPage">
98+
<argument name="productUrlKey" value="$createOutStockProduct.custom_attributes[url_key]$"/>
99+
</actionGroup>
100+
<actionGroup ref="AssertStorefrontProductStockStatusOnProductPageActionGroup" stepKey="seeProductStatusInStoreFront">
101+
<argument name="productStockStatus" value="In Stock"/>
102+
</actionGroup>
103+
</test>
104+
</tests>

app/code/Magento/Customer/Test/Mftf/Test/AdminChangeAllCustomersGroupViaGridTest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2020 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

@@ -15,11 +15,7 @@
1515
<description value="Select All customers to change their group"/>
1616
<testCaseId value="MC-26040"/>
1717
<severity value="MAJOR"/>
18-
<skip>
19-
<issueId value="ACQE-4161"/>
20-
</skip>
2118
</annotations>
22-
2319
<remove keyForRemoval="filterCustomer"/>
2420
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" before="selectCustomer" stepKey="clearFilters"/>
2521
<actionGroup ref="AdminSelectAllCustomers" stepKey="selectCustomer"/>

app/code/Magento/Downloadable/Test/Mftf/Test/StorefrontAccountDownloadableProductLinkAfterPartialRefundTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2020 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -70,6 +70,7 @@
7070
<comment userInput="Adding the comment to replace waitForProceedToCheckout action for preserving Backward Compatibility" stepKey="waitForProceedToCheckout"/>
7171
<waitForElementVisible selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="waitForShipHereVisible"/>
7272
<click selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="clickShipHere"/>
73+
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
7374
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
7475
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
7576
<checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution"/>

app/code/Magento/Paypal/Test/Mftf/Test/EnablePaypalExpressCheckoutAndSubmitAnOrderUsingPaypalExpressCheckoutTest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2023 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -15,6 +15,8 @@
1515
<description value="Enable paypal express checkout and validate the customer checkout payment works with paypal express"/>
1616
<severity value="MAJOR"/>
1717
<testCaseId value="AC-6951"/>
18+
<!-- pr_exclude added for 3rd party test -->
19+
<group value="pr_exclude"/>
1820
</annotations>
1921
<before>
2022
<!--Enable free shipping method -->

app/code/Magento/Shipping/Test/Mftf/Test/StorefrontMultishippingCheckoutWithOnlineShippingMethodTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
<createData entity="Simple_Customer_With_Multiple_Address" stepKey="customer"/>
2727
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
2828
<actionGroup ref="AdminEnableUSPSActionGroup" stepKey="enableUSPS"/>
29-
<actionGroup ref="AdminUPSEnableActionGroup" stepKey="enableUPS"/>
29+
<actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodConfigPageForEnablingUPS"/>
30+
<actionGroup ref="AdminEnableUPSActionGroup" stepKey="enableUPS"/>
3031
<actionGroup ref="AdminEnableFedExConfigurationActionGroup" stepKey="enableFedEx"/>
3132
<actionGroup ref="AdminEnableDHLWithoutSpecificCountryConfigurationActionGroup" stepKey="enableDHL"/>
3233
<!--Set Shipping settings origin data-->

0 commit comments

Comments
 (0)