|
| 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 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 10 | + <actionGroup name="AssertAdminFieldsFilledDefaultBillingAddressActionGroup"> |
| 11 | + <annotations> |
| 12 | + <description>Admin assert fields filled default billing address from customer</description> |
| 13 | + </annotations> |
| 14 | + <arguments> |
| 15 | + <argument name="firstName" type="string" defaultValue="John"/> |
| 16 | + <argument name="lastName" type="string" defaultValue="Doe"/> |
| 17 | + <argument name="company" type="string" defaultValue="Magento"/> |
| 18 | + <argument name="streetLine1" type="string" defaultValue="7700 West Parmer Lane"/> |
| 19 | + <argument name="streetLine2" type="string" defaultValue="113"/> |
| 20 | + <argument name="city" type="string" defaultValue="Los Angeles"/> |
| 21 | + <argument name="postcode" type="string" defaultValue="90001"/> |
| 22 | + <argument name="phone" type="string" defaultValue="512-345-6789"/> |
| 23 | + <argument name="vatNumber" type="string" defaultValue="U1234567891"/> |
| 24 | + </arguments> |
| 25 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.FirstName}}" stepKey="getFirstName"/> |
| 26 | + <assertEquals stepKey="assertFirstName"> |
| 27 | + <expectedResult type="string">{{firstName}}</expectedResult> |
| 28 | + <actualResult type="variable">getFirstName</actualResult> |
| 29 | + </assertEquals> |
| 30 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.LastName}}" stepKey="getLastName"/> |
| 31 | + <assertEquals stepKey="assertLastName"> |
| 32 | + <expectedResult type="string">{{lastName}}</expectedResult> |
| 33 | + <actualResult type="variable">getLastName</actualResult> |
| 34 | + </assertEquals> |
| 35 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.Company}}" stepKey="getCompany"/> |
| 36 | + <assertEquals stepKey="assertCompany"> |
| 37 | + <expectedResult type="string">{{company}}</expectedResult> |
| 38 | + <actualResult type="variable">getCompany</actualResult> |
| 39 | + </assertEquals> |
| 40 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.StreetLine1}}" stepKey="getStreetLine1"/> |
| 41 | + <assertEquals stepKey="assertStreetLine1"> |
| 42 | + <expectedResult type="string">{{streetLine1}}</expectedResult> |
| 43 | + <actualResult type="variable">getStreetLine1</actualResult> |
| 44 | + </assertEquals> |
| 45 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.StreetLine2}}" stepKey="getStreetLine2"/> |
| 46 | + <assertEquals stepKey="assertStreetLine2"> |
| 47 | + <expectedResult type="string">{{streetLine2}}</expectedResult> |
| 48 | + <actualResult type="variable">getStreetLine2</actualResult> |
| 49 | + </assertEquals> |
| 50 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.City}}" stepKey="getCity"/> |
| 51 | + <assertEquals stepKey="assertCity"> |
| 52 | + <expectedResult type="string">{{city}}</expectedResult> |
| 53 | + <actualResult type="variable">getCity</actualResult> |
| 54 | + </assertEquals> |
| 55 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.PostalCode}}" stepKey="getPostcode"/> |
| 56 | + <assertEquals stepKey="assertPostcode"> |
| 57 | + <expectedResult type="string">{{postcode}}</expectedResult> |
| 58 | + <actualResult type="variable">getPostcode</actualResult> |
| 59 | + </assertEquals> |
| 60 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.Phone}}" stepKey="getPhone"/> |
| 61 | + <assertEquals stepKey="assertPhone"> |
| 62 | + <expectedResult type="string">{{phone}}</expectedResult> |
| 63 | + <actualResult type="variable">getPhone</actualResult> |
| 64 | + </assertEquals> |
| 65 | + <grabValueFrom selector="{{AdminOrderFormBillingAddressSection.VatNumber}}" stepKey="getVatNumber"/> |
| 66 | + <assertEquals stepKey="assertVatNumber"> |
| 67 | + <expectedResult type="string">{{vatNumber}}</expectedResult> |
| 68 | + <actualResult type="variable">getVatNumber</actualResult> |
| 69 | + </assertEquals> |
| 70 | + </actionGroup> |
| 71 | +</actionGroups> |
0 commit comments