Skip to content

Commit 247ea35

Browse files
Merge pull request #9995 from magento-gl/ACQE-functional-deployment-v3-2
Bengals Functional Mainline deployment PR
2 parents 3920c2b + 0acd07c commit 247ea35

11 files changed

+458
-7
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AddToCartFromStorefrontProductPageActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<argument name="productName"/>
1818
</arguments>
1919
<waitForElementNotVisible selector="{{StorefrontProductActionSection.addToCartDisabled}}" stepKey="waitForAddToCartButtonToRemoveDisabledState"/>
20+
<!-- Scroll to button to prevent overlapping elements from intercepting click -->
21+
<scrollTo selector="{{StorefrontProductActionSection.addToCart}}" stepKey="scrollToAddToCartButton"/>
2022
<waitForElementClickable selector="{{StorefrontProductActionSection.addToCart}}" stepKey="waitForAddToCartButton"/>
2123
<click selector="{{StorefrontProductActionSection.addToCart}}" stepKey="addToCart"/>
2224
<waitForPageLoad stepKey="waitForAddToCart"/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
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="AdminUnassignOrderStatusActionGroup">
12+
<annotations>
13+
<description>Unassigns order status from order state</description>
14+
</annotations>
15+
<waitForElementClickable selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="waitToClickUnassignOrderStatus"/>
16+
<click selector="{{AdminOrderStatusGridSection.unassign}}" stepKey="clickUnassign"/>
17+
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageVisible"/>
18+
<!-- "You have unassigned the order status." Message should be displayed -->
19+
<waitForText selector="{{AdminMessagesSection.success}}" userInput="{{OrderUnassignedStatusMessage.value}}" stepKey="seeAssertOrderStatusSuccessUnassignMessage"/>
20+
</actionGroup>
21+
</actionGroups>

app/code/Magento/Sales/Test/Mftf/Data/OrderCommentsData.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
<data key="sent">An example comment when Status is sent.</data>
1919
<data key="readyForPickup">An example comment when Status is Ready For Pickup.</data>
2020
</entity>
21+
<entity name="OrderUnassignedStatusMessage">
22+
<data key="value">You have unassigned the order status.</data>
23+
</entity>
2124
</entities>

app/code/Magento/Sales/Test/Mftf/Data/OrderStatusData.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@
2828
<data key="code" unique="suffix">readyforpickup</data>
2929
<data key="label" unique="suffix">Ready For Pickup</data>
3030
</entity>
31+
<entity name="readyToPickup">
32+
<data key="code" unique="suffix">readytopickup</data>
33+
<data key="label" unique="suffix">Ready To Pickup</data>
34+
</entity>
3135
</entities>
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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="AdminVerifyBehaviorOfDefaultStatusForProcessingStateTest">
12+
<annotations>
13+
<features value="Sales"/>
14+
<stories value="Validate Auto-Assignment of Custom Status for Processing State"/>
15+
<title value="Verify default Status Behavior for Processing State When Custom Status Is Set as Default"/>
16+
<description value="Default order status for the Processing state is correctly updated when a custom status is assigned as default and reverts when the custom status is unassigned"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="AC-15125"/>
19+
<group value="Sales"/>
20+
</annotations>
21+
<before>
22+
<!-- Precondition: Login as admin -->
23+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
24+
</before>
25+
<after>
26+
<!--Logout from admin-->
27+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
28+
</after>
29+
<!--Step 1: Go to admin Stores => Order Status -->
30+
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPageToAssertChanges"/>
31+
<!--Step 2: Verify the default status for the order status Processing -->
32+
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterOrderStatusGrid">
33+
<argument name="statusLabel" value="{{OrderStatus.processing}}"/>
34+
<argument name="statusCode" value="{{orderStatus.value}}"/>
35+
</actionGroup>
36+
<!-- Default Status for processing should be displayed as Yes -->
37+
<waitForText selector="{{AdminOrderStatusGridSection.gridCell('1', 'Default Status')}}" userInput="{{EnableClearShoppingCart.textValue}}" stepKey="seeOrderStatusInOrderGrid"/>
38+
<!--Step 3: Create a status "Ready To Pickup" and bind it to "Processing" state-->
39+
<actionGroup ref="AdminClickCreateNewStatusButtonOnOrderStatusPageActionGroup" stepKey="clickAgainCreateNewStatus"/>
40+
<actionGroup ref="AdminOrderStatusFormFillAndSave" stepKey="fillFormAgainAndClickSave">
41+
<argument name="status" value="{{readyToPickup.code}}"/>
42+
<argument name="label" value="{{readyToPickup.label}}"/>
43+
</actionGroup>
44+
<actionGroup ref="AssertOrderStatusFormSaveSuccess" stepKey="seeAgainFormSaveSuccess"/>
45+
<!--Step 4: Select Use Order Status As Default checkbox and click on Save Status Assignment -->
46+
<actionGroup ref="AdminOrderStatusToStateAssignActionGroup" stepKey="resetDefaultStatusToState">
47+
<argument name="orderStatus" value="{{readyToPickup.label}}"/>
48+
<argument name="orderState" value="{{OrderStatus.processing}}"/>
49+
</actionGroup>
50+
<!--Step 5: Verify the default status for the order status Ready To Pickup -->
51+
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterOrderStatusGridForReadyToPickup">
52+
<argument name="statusLabel" value="{{readyToPickup.label}}"/>
53+
<argument name="statusCode" value="{{readyToPickup.code}}"/>
54+
</actionGroup>
55+
<!-- Default Status for Ready To Pickup should be displayed as Yes -->
56+
<waitForText selector="{{AdminOrderStatusGridSection.gridCell('1', 'Default Status')}}" userInput="{{EnableClearShoppingCart.textValue}}" stepKey="seeOrderStatus"/>
57+
<!--Step 6: Verify the default status for the order status Processing -->
58+
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterOrderStatusGridAfterDefaultChange">
59+
<argument name="statusLabel" value="{{OrderStatus.processing}}"/>
60+
<argument name="statusCode" value="{{orderStatus.value}}"/>
61+
</actionGroup>
62+
<!-- Default Status for processing should be displayed as No -->
63+
<waitForText selector="{{AdminOrderStatusGridSection.gridCell('1', 'Default Status')}}" userInput="{{DisableClearShoppingCart.textValue}}" stepKey="seeOrderStatusInGrid"/>
64+
<!--Step 7: Click on Unassign for the order status Ready To Pickup -->
65+
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterOrderStatusGridForUnassign">
66+
<argument name="statusLabel" value="{{readyToPickup.label}}"/>
67+
<argument name="statusCode" value="{{readyToPickup.code}}"/>
68+
</actionGroup>
69+
<actionGroup ref="AdminUnassignOrderStatusActionGroup" stepKey="unassignOrderStatus"/>
70+
<!--Step 8: Verify the default status for the order status Processing -->
71+
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterStatusForOrderInGrid">
72+
<argument name="statusLabel" value="{{OrderStatus.processing}}"/>
73+
<argument name="statusCode" value="{{orderStatus.value}}"/>
74+
</actionGroup>
75+
<!-- Default Status for processing should be displayed as Yes -->
76+
<waitForText selector="{{AdminOrderStatusGridSection.gridCell('1', 'Default Status')}}" userInput="{{EnableClearShoppingCart.textValue}}" stepKey="seeStatusForOrderInOrderGrid"/>
77+
</test>
78+
</tests>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
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="AdminEnableUpsWithWeightUnitActionGroup" extends="AdminEnableUPSActionGroup">
12+
<arguments>
13+
<argument name="weight" type="string"/>
14+
</arguments>
15+
<scrollTo selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" x="0" y="-120" stepKey="scrollToWeightUnits" after="enterTrackingRestURl"/>
16+
<waitForElementClickable selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="waitForUnCheckWeightUnits" after="scrollToWeightUnits"/>
17+
<uncheckOption selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="unSelectWeightUnits" after="waitForUnCheckWeightUnits"/>
18+
<selectOption selector="{{AdminShippingMethodUPSSection.weightUnitSelect}}" userInput="{{weight}}" stepKey="selectWeightUnit" after="unSelectWeightUnits"/>
19+
</actionGroup>
20+
</actionGroups>

app/code/Magento/Shipping/Test/Mftf/Section/AdminShippingMethodUPSSection.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright 2025 Adobe
5-
* All Rights Reserved.
6-
*/
3+
/**
4+
* Copyright 2019 Adobe
5+
* All Rights Reserved.
6+
*/
77
-->
88

99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -43,5 +43,6 @@
4343
<element name="handlingFee" type="input" selector="//tr[@id='row_carriers_ups_handling_fee']//td//input[@id='carriers_ups_handling_fee']"/>
4444
<element name="showMethodIfNotApplicableSelect" type="select" selector="//tr[@id='row_carriers_ups_showmethod']//td//select[@id='carriers_ups_showmethod']"/>
4545
<element name="debugSelect" type="select" selector="//tr[@id='row_carriers_ups_debug']//td//select[@id='carriers_ups_debug']"/>
46+
<element name="upsShippingNotAvailableAlertInAdmin" type="text" selector="//div[@class='message message-error error']"/>
4647
</section>
4748
</sections>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
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 2017 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="StorefrontOrderShipmentSection">
1212
<element name="trackingNumber" type="text" selector=".order-details-items .order-tracking .tracking-content a:nth-child({{child}})" parameterized="true"/>
13+
<element name="upsShippingMethodIsNotAvailable" type="text" selector="//td[@id='label_method_null_ups']"/>
1314
</section>
1415
</sections>
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<tests
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
12+
<test name="StorefrontVerifyUPSWithUnsupportedWeightUnitForUSTest">
13+
<annotations>
14+
<features value="Shipping"/>
15+
<stories value="Weight unit kgs is not authorised for US origin"/>
16+
<title value="Unsupported weight unit"/>
17+
<description value="This test case verifies weight unit kgs is not authorised for US origin"/>
18+
<severity value="MAJOR"/>
19+
<testCaseId value="AC-11910"/>
20+
<group value="shipping"/>
21+
</annotations>
22+
<before>
23+
<!--Login as Admin-->
24+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
25+
<!-- Create product -->
26+
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
27+
<field key="price">100.00</field>
28+
</createData>
29+
<!--Create customer-->
30+
<createData entity="Simple_US_Utah_Customer" stepKey="createCustomer"/>
31+
<!--Step 1:Set Shipping settings origin data to US-->
32+
<actionGroup ref="AdminSetShippingOriginConfigActionGroup" stepKey="setShippingOriginConfigurationData">
33+
<argument name="country" value="United States"/>
34+
<argument name="state" value="California"/>
35+
<argument name="postcode" value="90034"/>
36+
</actionGroup>
37+
<!--Navigate to shipping method configuration for enabling UPS-->
38+
<actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodConfigPageForEnablingUPS"/>
39+
<!--Step 2: Configure UPS shipping method with ups type:rest, weight unit:kgs-->
40+
<actionGroup ref="AdminEnableUpsWithWeightUnitActionGroup" stepKey="enableUPSShippingMethod">
41+
<argument name="weight" value="KGS"/>
42+
</actionGroup>
43+
<!--Cache flush-->
44+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCache">
45+
<argument name="tags" value="full_page"/>
46+
</actionGroup>
47+
</before>
48+
<after>
49+
<!--Reset shipping origin-->
50+
<actionGroup ref="AdminResetShippingOriginConfigurationActionGroup" stepKey="resetShippingOriginConfig"/>
51+
<!--Navigate to shipping method configuration-->
52+
<actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodConfigPageForDisablingUPS"/>
53+
<!--Configure UPS shipping method with enable for checkout = No-->
54+
<actionGroup ref="AdminDisableUPSActionGroup" stepKey="disableUPSShippingMethod"/>
55+
<!--delete product, customer-->
56+
<deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
57+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
58+
<!--Logout Admin-->
59+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
60+
</after>
61+
<!--Add simple product to cart-->
62+
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
63+
<argument name="product" value="$$createSimpleProduct$$"/>
64+
</actionGroup>
65+
<!--Proceed to checkout-->
66+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="proceedToCheckout"/>
67+
<!--Enter shipping address & method-->
68+
<actionGroup ref="FillGuestCheckoutShippingAddressFormActionGroup" stepKey="fillShippingAddress"/>
69+
<waitForPageLoad stepKey="waitForShippingPageToLoad"/>
70+
<!--Step 3 Assertion: Verify ups shipping methods on front end and verify ups shipping methods should not be displayed to the user-->
71+
<waitForElementVisible selector="{{StorefrontOrderShipmentSection.upsShippingMethodIsNotAvailable}}" stepKey="verifyUPSShippingMethodIsNotAvailable"/>
72+
<!--In admin navigate to create new order with existing customer-->
73+
<actionGroup ref="AdminNavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer">
74+
<argument name="customer" value="$$createCustomer$$"/>
75+
</actionGroup>
76+
<!--Admin add simple product to order-->
77+
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addSimpleProductToOrder">
78+
<argument name="product" value="$$createSimpleProduct$$"/>
79+
</actionGroup>
80+
<!--Admin add new address while creating order-->
81+
<selectOption userInput="Add New Address" selector="{{AdminOrderFormBillingAddressSection.selectAddress}}" stepKey="addAddress" />
82+
<actionGroup ref="AdminFillAddressInformationInOrderActionGroup" stepKey="FillOrderNewShippingAddress">
83+
<argument name="customer" value="$$createCustomer$$"/>
84+
<argument name="address" value="US_Address_NY_Not_Default_Address"/>
85+
</actionGroup>
86+
<!--Scroll to element & click to reflect details as per defined address & customer-->
87+
<scrollTo selector="{{AdminOrderFormBillingAddressSection.Phone}}" stepKey="scrollToElementInteractable"/>
88+
<click selector="{{AdminOrderFormPaymentSection.linkPaymentOptions}}" stepKey="clickToReflectDetailsAccordingToInputData"/>
89+
<!--Checkout select Check/Money Order payment-->
90+
<actionGroup ref="SelectCheckMoneyPaymentMethodActionGroup" stepKey="selectCheckMoneyPayment"/>
91+
<!--click on get shipping methods link-->
92+
<click selector="{{AdminOrderFormPaymentSection.header}}" stepKey="unfocus"/>
93+
<waitForLoadingMaskToDisappear stepKey="waitForJavascriptToFinish"/>
94+
<click selector="{{AdminOrderFormPaymentSection.getShippingMethods}}" stepKey="clickShippingMethods"/>
95+
<!--Step 3 Assertion: Verify ups shipping method in admin and verify ups shipping methods is not available-->
96+
<waitForElementVisible selector="{{AdminShippingMethodUPSSection.upsShippingNotAvailableAlertInAdmin}}" stepKey="waitForUpsShippingNotAvailable"/>
97+
</test>
98+
</tests>

app/code/Magento/Translation/Test/Mftf/Test/StorefrontButtonsInlineTranslationOnProductPageTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<group value="translation"/>
2121
<group value="catalog"/>
2222
<group value="developer_mode_only"/>
23-
<group value="pr_exclude"/>
2423
</annotations>
2524
<before>
2625
<!-- Enable Translate Inline For Storefront -->

0 commit comments

Comments
 (0)