Skip to content

Commit e74261f

Browse files
committed
Merge remote-tracking branch 'origin/MC-25022' into 2.4-develop-pr16
2 parents 332d2b1 + 345d5a4 commit e74261f

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
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="StorefrontOpenCustomerAddressesOnPaymentStepInCheckoutActionGroup">
12+
<annotations>
13+
<description>Click 'Change Address' link on the Storefront Checkout page on the 'Payment' step.</description>
14+
</annotations>
15+
16+
<click selector="{{CheckoutBillingAddressSection.changeAddressButton}}" stepKey="clickChangeAddresslink"/>
17+
<waitForElementVisible selector="{{CheckoutShippingAddressSearchSection.popupSelectShippingAddress}}" stepKey="seePopup"/>
18+
<seeElement selector="{{CheckoutShippingAddressSearchSection.selectShippingAddressGrid}}" stepKey="seeAddressGrid"/>
19+
</actionGroup>
20+
</actionGroups>
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="StorefrontSearchAddressInSelectBillingAddressPopupOnPaymentStepOnCheckoutActionGroup">
12+
<annotations>
13+
<description>Search customer address in 'Select Billing Address' popup on the Storefront Checkout on the 'Payment' step.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="addressSearchTerm" type="string" defaultValue="10001"/>
17+
</arguments>
18+
19+
<fillField selector="{{CheckoutBillingAddressSearchSection.searchAddressField}}" userInput="{{addressSearchTerm}}" stepKey="fillAddressInSearchField"/>
20+
<click selector="{{CheckoutBillingAddressSearchSection.searchAddressButton}}" stepKey="clickSearchAddressButton"/>
21+
<see selector="{{CheckoutBillingAddressSearchSection.addressesFound}}" userInput="1 addresses" stepKey="assertOneAddressesWasFound"/>
22+
<see selector="{{CheckoutBillingAddressSearchSection.firstBillingAddressItem}}" userInput="{{addressSearchTerm}}" stepKey="verifyAddresses"/>
23+
</actionGroup>
24+
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Data/CustomerData.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,18 @@
354354
<data key="website_id">0</data>
355355
<requiredEntity type="address">US_Address_AE</requiredEntity>
356356
</entity>
357+
<entity name="Simple_US_Customer_CA_NY_Addresses" type="customer">
358+
<data key="group_id">1</data>
359+
<data key="default_billing">true</data>
360+
<data key="default_shipping">true</data>
361+
<data key="email" unique="prefix">[email protected]</data>
362+
<data key="firstname">John</data>
363+
<data key="lastname">Doe</data>
364+
<data key="fullname">John Doe</data>
365+
<data key="password">pwdTest123!</data>
366+
<data key="store_id">0</data>
367+
<data key="website_id">0</data>
368+
<requiredEntity type="address">US_Address_CA</requiredEntity>
369+
<requiredEntity type="address">US_Address_NY_Not_Default_Address</requiredEntity>
370+
</entity>
357371
</entities>

0 commit comments

Comments
 (0)