Skip to content

Commit c6016f5

Browse files
#32821: [MFTF] add StorefrontGiftMessageForOrderOnCheckoutCartPageTest.
1 parent d7a2d85 commit c6016f5

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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="GuestGiftCheckoutFillingShippingSectionActionGroup" extends="GuestCheckoutFillingShippingSectionActionGroup">
12+
<annotations>
13+
<description>EXTENDS: Fills in the provided Customer/Address (Including Region) details on the Storefront Checkout page under the 'Shipping Address' section. Selects the provided Shipping Method. Clicks on Next. Validates that the URL is present and correct.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="customerVar" defaultValue="CustomerEntityOne"/>
17+
<argument name="customerAddressVar" defaultValue="CustomerAddressSimple"/>
18+
<!--First available shipping method will be selected if value is not passed for shippingMethod-->
19+
<argument name="shippingMethod" defaultValue="" type="string"/>
20+
</arguments>
21+
22+
<seeInCurrentUrl url="{{CheckoutPage.url}}#payment" stepKey="assertCheckoutPaymentUrl"/>
23+
</actionGroup>
24+
</actionGroups>

app/code/Magento/GiftMessage/Test/Mftf/Test/StorefrontGiftMessageForOrderOnCheckoutCartPageTest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
</annotations>
1818
<before>
1919
<magentoCLI command="config:set sales/gift_options/allow_order 1" stepKey="enableGiftMessageForOrder"/>
20-
2120
<createData entity="SimpleProduct2" stepKey="simpleProduct"/>
22-
23-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
24-
<argument name="tags" value="config full_page"/>
25-
</actionGroup>
2621
</before>
2722
<after>
2823
<magentoCLI command="config:set sales/gift_options/allow_order 0" stepKey="disableGiftMessageForOrder"/>
@@ -37,7 +32,7 @@
3732
<actionGroup ref="AssertStorefrontGiftMessageOnCheckoutCartPageActionGroup" stepKey="seeGiftMessageFields"/>
3833
<actionGroup ref="StorefrontFieldGiftMessageCartFormActionGroup" stepKey="fillGiftMessageFields"/>
3934
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="navigateToCheckoutPage"/>
40-
<actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping">
35+
<actionGroup ref="GuestGiftCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping">
4136
<argument name="shippingMethod" value="Flat Rate"/>
4237
</actionGroup>
4338
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="guestSelectCheckMoneyOrderPayment"/>

0 commit comments

Comments
 (0)