Skip to content

Commit 8e463fe

Browse files
committed
Click save address action group
1 parent c0f3dfb commit 8e463fe

6 files changed

+24
-10
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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="StorefrontCheckoutClickSaveAddressButtonActionGroup">
12+
<annotations>
13+
<description>Click Save Address button on checkout.</description>
14+
</annotations>
15+
16+
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
17+
<waitForPageLoad stepKey="waitForAddressSaved"/>
18+
</actionGroup>
19+
</actionGroups>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
<argument name="classPrefix" value="._show"/>
5050
</actionGroup>
5151
<!--Click "Save Addresses" -->
52-
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
53-
<waitForPageLoad stepKey="waitForAddressSaved"/>
52+
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
5453
<dontSeeElement selector="{{StorefrontCheckoutAddressPopupSection.newAddressModalPopup}}" stepKey="dontSeeModalPopup"/>
5554
<!--Select Shipping Rate "Flat Rate" and click "Next" button-->
5655
<actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<actionGroup ref="FillShippingAddressOneStreetActionGroup" stepKey="changeAddress">
6161
<argument name="address" value="UK_Not_Default_Address"/>
6262
</actionGroup>
63-
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveNewAddress"/>
63+
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveNewAddress"/>
6464

6565
<!--Select Shipping Rate-->
6666
<scrollTo selector="{{CheckoutShippingMethodsSection.next}}" stepKey="scrollToShippingRate"/>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
<actionGroup ref="FillShippingAddressOneStreetActionGroup" stepKey="changeAddress">
7070
<argument name="address" value="UK_Not_Default_Address"/>
7171
</actionGroup>
72-
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveNewAddress"/>
73-
<waitForPageLoad stepKey="waitForAddressSaving"/>
72+
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveNewAddress"/>
7473

7574
<!-- Click next button to open payment section -->
7675
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
</actionGroup>
5353

5454
<!--Click "Save Addresses" -->
55-
<click selector="{{CheckoutShippingSection.saveAddress}}" stepKey="saveAddress"/>
56-
<waitForPageLoad stepKey="waitForAddressSaved"/>
55+
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
5756
<dontSeeElement selector="{{StorefrontCheckoutAddressPopupSection.newAddressModalPopup}}" stepKey="dontSeeModalPopup"/>
5857

5958
<!--Select Shipping Rate "Flat Rate"-->

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCheckoutTest/StorefrontTaxQuoteCheckoutLoggedInSimpleTest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@
114114
<argument name="Address" value="US_Address_CA"/>
115115
<argument name="classPrefix" value="._show"/>
116116
</actionGroup>
117-
<click stepKey="saveAddress" selector="{{CheckoutShippingSection.saveAddress}}"/>
118-
119-
<waitForPageLoad stepKey="waitForAddressSaved"/>
117+
<actionGroup ref="StorefrontCheckoutClickSaveAddressButtonActionGroup" stepKey="saveAddress"/>
120118
<see stepKey="seeAddress2" selector="{{CheckoutShippingSection.selectedShippingAddress}}" userInput="{{SimpleTaxCA.state}}"/>
121119
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext2"/>
122120

0 commit comments

Comments
 (0)