Skip to content

Commit a48a6b1

Browse files
committed
MC-25238: Unstable Test "StorefrontCheckoutWithDifferentShippingAndBillingAddressAndRegisterCustomerAfterCheckoutTest"
1 parent 6b68063 commit a48a6b1

File tree

4 files changed

+19
-66
lines changed

4 files changed

+19
-66
lines changed

app/code/Magento/Checkout/Test/Mftf/ActionGroup/CartFillEstimateShippingAndTaxActionGroup.xml

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

app/code/Magento/Checkout/Test/Mftf/ActionGroup/CheckoutFillEstimateShippingAndTaxActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
<argument name="address" defaultValue="US_Address_TX" type="entity"/>
1414
</arguments>
1515
<conditionalClick selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" dependentSelector="{{CheckoutCartSummarySection.estimateShippingAndTaxSummary}}" visible="false" stepKey="openShippingDetails"/>
16+
<waitForElementVisible selector="{{CheckoutCartSummarySection.estimateShippingAndTax}}" stepKey="waitForSummarySectionLoad"/>
1617
<selectOption selector="{{CheckoutCartSummarySection.country}}" userInput="{{address.country_id}}" stepKey="selectCountry"/>
1718
<selectOption selector="{{CheckoutCartSummarySection.stateProvince}}" userInput="{{address.state}}" stepKey="selectState"/>
1819
<waitForElementVisible selector="{{CheckoutCartSummarySection.postcode}}" stepKey="waitForPostCodeVisible"/>
1920
<fillField selector="{{CheckoutCartSummarySection.postcode}}" userInput="{{address.postcode}}" stepKey="selectPostCode"/>
2021
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDiappear"/>
2122
</actionGroup>
22-
</actionGroups>
23+
</actionGroups>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontCheckoutWithDifferentShippingAndBillingAddressAndCreateCustomerAfterCheckoutTest.xml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
<title value="Verify UK customer checkout with different billing and shipping address and register customer after checkout"/>
1414
<description value="Checkout as UK customer with different shipping/billing address and register checkout method"/>
1515
<severity value="CRITICAL"/>
16-
<testCaseId value="MC-14712"/>
16+
<testCaseId value="MC-28288"/>
1717
<group value="mtf_migrated"/>
18+
<group value="checkout"/>
1819
</annotations>
1920

2021
<before>
@@ -25,30 +26,30 @@
2526
</before>
2627
<after>
2728
<!-- Sign out Customer from storefront -->
28-
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openHomePage"/>
29-
<actionGroup ref="StorefrontSignOutActionGroup" stepKey="customerLogout"/>
29+
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
3030
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
31-
<actionGroup ref="AdminDeleteCustomerInGridActionGroup" stepKey="deleteCustomer">
31+
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer">
3232
<argument name="customerEmail" value="UKCustomer.email"/>
3333
</actionGroup>
34-
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
34+
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearCustomersGridFilter"/>
35+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
3536
</after>
3637

3738
<!--Open Product page in StoreFront and assert product and price range -->
3839
<actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="openProductPageAndVerifyProduct">
39-
<argument name="product" value="$$simpleProduct$$"/>
40+
<argument name="product" value="$simpleProduct$"/>
4041
</actionGroup>
4142

4243
<!--Add product to the cart -->
43-
<actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addSimpleProductToCart">
44-
<argument name="productQty" value="1"/>
44+
<actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart">
45+
<argument name="product" value="$simpleProduct$"/>
4546
</actionGroup>
4647

4748
<!--Open View and edit -->
4849
<actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="openCartFromMiniCart"/>
4950

5051
<!-- Fill the Estimate Shipping and Tax section -->
51-
<actionGroup ref="CartFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields"/>
52+
<actionGroup ref="CheckoutFillEstimateShippingAndTaxActionGroup" stepKey="fillEstimateShippingAndTaxFields"/>
5253
<click selector="{{CheckoutCartSummarySection.proceedToCheckout}}" stepKey="goToCheckout"/>
5354
<waitForPageLoad stepKey="waitForPageToLoad"/>
5455

@@ -57,11 +58,11 @@
5758
<argument name="customer" value="UKCustomer"/>
5859
<argument name="customerAddress" value="updateCustomerUKAddress"/>
5960
</actionGroup>
60-
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="goToBillingStep"/>
61+
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/>
62+
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToBillingStep"/>
6163
<waitForElementVisible selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="waitForSameBillingAndShippingAddressCheckboxVisible"/>
6264
<uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="uncheckSameBillingAndShippingAddress"/>
6365
<conditionalClick selector="{{CheckoutShippingSection.editAddressButton}}" dependentSelector="{{CheckoutShippingSection.editAddressButton}}" visible="true" stepKey="clickEditBillingAddressButton"/>
64-
<waitForLoadingMaskToDisappear stepKey="waitForBillingAddressFormLoad"/>
6566

6667
<!-- Fill Billing Address -->
6768
<actionGroup ref="StorefrontFillBillingAddressActionGroup" stepKey="fillBillingAddressForm"/>
@@ -75,23 +76,18 @@
7576
<!-- Register customer after checkout -->
7677
<actionGroup ref="StorefrontRegisterCustomerAfterCheckoutActionGroup" stepKey="registerCustomer"/>
7778

78-
<!-- Open Order Index Page -->
79-
<actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrdersGrid"/>
80-
81-
<!-- Filter Order using orderId and assert order-->
82-
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
83-
<argument name="orderId" value="$orderId"/>
79+
<!-- Open Order Page in admin -->
80+
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
81+
<argument name="orderId" value="{$orderId}"/>
8482
</actionGroup>
8583

86-
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="openOrderPage"/>
87-
<waitForPageLoad stepKey="waitForOrderPageToLoad"/>
88-
8984
<!-- Assert Grand Total -->
9085
<see selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$55.00" stepKey="seeGrandTotal"/>
9186
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeOrderStatus"/>
9287

9388
<!-- Ship the order and assert the status -->
94-
<actionGroup ref="AdminShipThePendingOrderActionGroup" stepKey="shipTheOrder"/>
89+
<actionGroup ref="GoToShipmentIntoOrderActionGroup" stepKey="goToShipment"/>
90+
<actionGroup ref="SubmitShipmentIntoOrderActionGroup" stepKey="submitShipment"/>
9591

9692
<!-- Assert order buttons -->
9793
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminDeleteCustomerInGridActionGroup.xml

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

0 commit comments

Comments
 (0)