|
| 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