Skip to content

Commit d76b8ff

Browse files
shanthishanthi
authored andcommitted
Created action group
1 parent 86a0115 commit d76b8ff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
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="{{UK_Not_Default_Address.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)