File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
app/code/Magento/Customer/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +48
-0
lines changed 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 =" AdminNavigateCustomerEditPageAddressesTabActionGroup" extends =" AdminOpenCustomerEditPageActionGroup" >
12
+ <annotations >
13
+ <description >EXTENDS: AdminOpenCustomerEditPageActionGroup. Navigates to Addresses Tab in Admin Customer Edit page for the provided Customer ID #.</description >
14
+ </annotations >
15
+
16
+ <click selector =" {{AdminEditCustomerInformationSection.addresses}}" after =" waitForPageLoad" stepKey =" navigateToAddressesTab" />
17
+ <waitForPageLoad stepKey =" waitForPageLoad" />
18
+ </actionGroup >
19
+ </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 =" StorefrontAssertCustomerAddressItemsActionGroup" >
12
+ <annotations >
13
+ <description >Validate that the Storefront Customer Address contains correct items.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" address" type =" entity" />
17
+ </arguments >
18
+
19
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.firstName}}" userInput =" {{address.firstName}}" stepKey =" seeFirstName" />
20
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.lastName}}" userInput =" {{address.lastName}}" stepKey =" seeLastName" />
21
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.company}}" userInput =" {{address.company}}" stepKey =" seeCompany" />
22
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.phoneNumber}}" userInput =" {{address.telephone}}" stepKey =" seePhoneNumber" />
23
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.streetAddress}}" userInput =" {{address.street[0]}}" stepKey =" seeStreet" />
24
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.city}}" userInput =" {{address.city}}" stepKey =" seeCity" />
25
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.state}}" userInput =" {{address.state}}" stepKey =" seeState" />
26
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.zip}}" userInput =" {{address.postcode}}" stepKey =" seePostcode" />
27
+ <seeInField selector =" {{StorefrontCustomerAddressFormSection.country}}" userInput =" {{address.country}}" stepKey =" seeCountry" />
28
+ </actionGroup >
29
+ </actionGroups >
You can’t perform that action at this time.
0 commit comments