Skip to content

Commit e2f0d6c

Browse files
committed
ACQE-8195:Storefront able to see First-Class Package International Service usps shipping method
- Changes made related to stepkey, method name as per latest comments
1 parent 170c384 commit e2f0d6c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/code/Magento/Shipping/Test/Mftf/Data/USPSShippingMethodData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<entity name="ShippingTypeUSPSConfigData" type="usps_config">
108108
<data key="value">Priority Mail International Flat Rate Envelope</data>
109109
</entity>
110-
<entity name="USPSShippingTypeUSPSConfigData" type="usps_config">
110+
<entity name="USPSFirstClassInternationalShippingMethodData" type="usps_config">
111111
<data key="value">First-Class Package International Service</data>
112112
</entity>
113113
</entities>

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<!-- Create product -->
2525
<createData entity="SimpleProduct" stepKey="createProduct"/>
2626
<createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"/>
27-
2827
</before>
2928
<after>
3029
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogoutStorefront"/>
@@ -34,7 +33,7 @@
3433
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
3534
</after>
3635
<!-- Step 1:Navigate to storefront -->
37-
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
36+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginCustomerToStorefront">
3837
<argument name="Customer" value="$createCustomer$" />
3938
</actionGroup>
4039
<!-- Step 2:Add product to cart -->
@@ -51,13 +50,13 @@
5150
<argument name="address" value="Canada_Address"/>
5251
</actionGroup>
5352
<!-- Step 4:Select First-Class Package International Service USPS Shipping method -->
54-
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="setShippingMethodUSPS">
55-
<argument name="shippingMethodName" value="{{USPSShippingTypeUSPSConfigData.value}}"/>
53+
<actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="verifyFirstClassPackageInternationalServiceShippingMethodIsAvailableAndSelect">
54+
<argument name="shippingMethodName" value="{{USPSFirstClassInternationalShippingMethodData.value}}"/>
5655
</actionGroup>
5756
<!-- Step 5:Place order -->
5857
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="goToPaymentStep"/>
5958
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectPaymentMethod"/>
6059
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickPlaceOrder"/>
61-
<waitForElement selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="waitForOrderNumber"/>
60+
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="waitForOrderNumber"/>
6261
</test>
6362
</tests>

0 commit comments

Comments
 (0)