Skip to content

Commit 6be78d2

Browse files
ENGCOM-8582: [MFTF] Adding StorefrontGuestCheckoutProceedToPaymentStepActionGroup #31418
2 parents 4f3ce12 + 71e99df commit 6be78d2

9 files changed

+36
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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="StorefrontGuestCheckoutProceedToPaymentStepActionGroup">
12+
<annotations>
13+
<description>Clicks next on Checkout Shipping step. Waits for Payment step</description>
14+
</annotations>
15+
16+
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
17+
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded" after="clickNext"/>
18+
<seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/>
19+
</actionGroup>
20+
</actionGroups>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
<seeCheckboxIsChecked selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShipping}}" stepKey="freeShippingMethodCheckboxIsChecked"/>
6868

6969
<!-- Click Next button -->
70-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
71-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
70+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
71+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
7272

7373
<!-- Payment step is opened -->
7474
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded"/>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
<click selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="clickShipHere"/>
7070

7171
<!-- Click next button to open payment section -->
72-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
73-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
72+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
73+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
7474

7575
<!-- Select payment solution -->
7676
<checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution" />

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
<click selector="{{CheckoutShippingSection.shipHereButton(DE_Address_Berlin_Not_Default_Address.street[0])}}" stepKey="clickShipHere"/>
6565

6666
<!-- Click next button to open payment section -->
67-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
68-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
67+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
68+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
6969
<uncheckOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution"/>
7070

7171
<!-- Change the address -->

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
<click selector="{{CheckoutShippingSection.shipHereButton(UK_Not_Default_Address.street[0])}}" stepKey="clickShipHere"/>
8080

8181
<!-- Click next button to open payment section -->
82-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
83-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
82+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
83+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
8484

8585
<!-- Select payment solution -->
8686
<checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution" />

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
</actionGroup>
6464

6565
<!-- Click next button to open payment section -->
66-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
67-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
66+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
67+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
6868

6969
<!-- Select payment solution -->
7070
<checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution" />

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@
187187
<fillField selector="{{CheckoutShippingGuestInfoSection.telephone}}" userInput="{{CustomerAddressSimple.telephone}}" stepKey="fillPhone" />
188188

189189
<!-- Click next button to open payment section -->
190-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNextBtn"/>
191-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
190+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNextBtn"/>
191+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
192192

193193
<!-- Check order summary in checkout -->
194194
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded"/>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
<!--Proceed to checkout-->
8888
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="GoToCheckoutFromMinicartActionGroup"/>
8989
<!-- Click next button to open payment section -->
90-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
91-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
90+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
91+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
9292

9393
<!-- Check order summary in checkout -->
9494
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
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-
<click selector="{{CheckoutShippingGuestInfoSection.next}}" stepKey="clickNext"/>
74-
<waitForPageLoad stepKey="waitForShipmentPageLoad"/>
73+
<actionGroup ref="StorefrontGuestCheckoutProceedToPaymentStepActionGroup" stepKey="clickNext"/>
74+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForShipmentPageLoad"/>
7575
<checkOption selector="{{CheckoutPaymentSection.billingAddressNotSameCheckbox}}" stepKey="selectPaymentSolution"/>
7676
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" stepKey="waitForPaymentSectionLoaded"/>
7777
<click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrderButton"/>

0 commit comments

Comments
 (0)