File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
Checkout/Test/Mftf/Section Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 39
39
<element name =" editActiveAddress" type =" button" selector =" //div[@class='shipping-address-item selected-item']//span[text()='Edit']" timeout =" 30" />
40
40
<element name =" loginButton" type =" button" selector =" .action.login" timeout =" 30" />
41
41
<element name =" shipHereButton" type =" button" selector =" //div[text()='{{street}}']/button[@class='action action-select-shipping-item']" parameterized =" true" timeout =" 30" />
42
+ <element name =" textFieldAttribute" selector =" [name*='custom_attributes[{{attribute}}]']" parameterized =" true" timeout =" 30" />
42
43
</section >
43
44
</sections >
Original file line number Diff line number Diff line change
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 =" AdminSaveCustomerAddressActionGroup" >
11
+ <click selector =" {{StorefrontCustomerAddressFormSection.saveAddress}}" stepKey =" saveCustomerAddress" />
12
+ <see selector =" {{AdminMessagesSection.successMessage}}" userInput =" You saved the address." stepKey =" seeSuccessMessage" />
13
+ </actionGroup >
14
+ </actionGroups >
Original file line number Diff line number Diff line change
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 =" FillNewCustomerAddressRequiredFieldsActionGroup" >
12
+ <arguments >
13
+ <argument name =" address" type =" entity" />
14
+ </arguments >
15
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.firstName}}" userInput =" {{address.firstname}}" stepKey =" fillFirstName" />
16
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.lastName}}" userInput =" {{address.lastname}}" stepKey =" fillLastName" />
17
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.phoneNumber}}" userInput =" {{address.telephone}}" stepKey =" fillPhoneNumber" />
18
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.streetAddress}}" userInput =" {{address.street[0]}}" stepKey =" fillStreetAddress" />
19
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.city}}" userInput =" {{address.city}}" stepKey =" fillCity" />
20
+ <selectOption selector =" {{StorefrontCustomerAddressFormSection.state}}" userInput =" {{address.state}}" stepKey =" selectState" />
21
+ <fillField selector =" {{StorefrontCustomerAddressFormSection.zip}}" userInput =" {{address.postcode}}" stepKey =" fillZip" />
22
+ <selectOption selector =" {{StorefrontCustomerAddressFormSection.country}}" userInput =" {{address.country}}" stepKey =" selectCountry" />
23
+ </actionGroup >
24
+ </actionGroups >
Original file line number Diff line number Diff line change 284
284
<data key =" telephone" >333-33-333-33</data >
285
285
<data key =" country" >Germany</data >
286
286
</entity >
287
+ <entity name =" US_Address_California" >
288
+ <data key =" firstname" >John</data >
289
+ <data key =" lastname" >Doe</data >
290
+ <data key =" company" >Magento</data >
291
+ <array key =" street" >
292
+ <item >6161 West Centinela Avenue</item >
293
+ </array >
294
+ <data key =" city" >Culver City</data >
295
+ <data key =" country_id" >United States</data >
296
+ <data key =" country" >United States</data >
297
+ <data key =" state" >California</data >
298
+ <data key =" postcode" >90230</data >
299
+ <data key =" telephone" >555-55-555-55</data >
300
+ </entity >
287
301
</entities >
You can’t perform that action at this time.
0 commit comments