Skip to content

Commit 7fe9541

Browse files
akaashakaash
authored andcommitted
Merge branch 'ACQE-5042' into functional-mainline-deployment
2 parents 26f24cb + 363626a commit 7fe9541

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutShippingSection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@
5353
<element name="stateProvinceWithoutAsterisk" type="text" selector="//div[@class='field' and @name='shippingAddress.region_id']" timeout="30"/>
5454
<element name="stateProvinceWithAsterisk" type="text" selector="//div[@class='field _required' and @name='shippingAddress.region_id']" timeout="30"/>
5555
<element name="selectCountry" type="select" selector="//div[@class='billing-address-form']//select[@name='country_id']"/>
56+
<element name="customerAddressAttribute" type="input" selector="[id*='{{attribute}}']" parameterized="true"/>
57+
<element name="savedAddress" type="text" selector="div[class='shipping-address-item selected-item']"/>
5658
</section>
5759
</sections>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
<!-- Go to Address Book -->
12+
<actionGroup name="StorefrontFillCustomerAddressWithAttributeActionGroup">
13+
<annotations>
14+
<description>Fill address with customer address attribute in address book.</description>
15+
</annotations>
16+
<arguments>
17+
<argument name="street" defaultValue="{{UK_Not_Default_Address.street[0]}}" type="string"/>
18+
<argument name="city" defaultValue="{{UK_Not_Default_Address.city}}" type="string"/>
19+
<argument name="postcode" defaultValue="{{UK_Not_Default_Address.postcode}}" type="string"/>
20+
<argument name="countryid" defaultValue="{{UK_Not_Default_Address.country_id}}" type="string"/>
21+
<argument name="telephone" defaultValue="{{UK_Not_Default_Address.telephone}}" type="string"/>
22+
<argument name="attributeValue" defaultValue="{{UK_Not_Default_Address.street[0]}}" type="string"/>
23+
</arguments>
24+
<fillField selector="{{CheckoutShippingSection.street}}" userInput="{{street}}" stepKey="enterStreet"/>
25+
<fillField selector="{{CheckoutShippingSection.city}}" userInput="{{city}}" stepKey="enterCity"/>
26+
<fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{postcode}}" stepKey="enterPostcode"/>
27+
<selectOption selector="{{CheckoutShippingSection.country}}" userInput="{{countryid}}" stepKey="enterCountry"/>
28+
<fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{telephone}}" stepKey="enterTelephone"/>
29+
<fillField selector="{{CheckoutShippingSection.customerAddressAttribute(AddressAttributeTextField.attribute_code)}}" userInput="{{attributeValue}}" stepKey="enterAttributeValue"/>
30+
<!-- Save Shipping Address info -->
31+
<click selector="{{StorefrontCustomerAddressSection.saveAddress}}" stepKey="clickSaveAddress"/>
32+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>
33+
</actionGroup>
34+
</actionGroups>

0 commit comments

Comments
 (0)