File tree Expand file tree Collapse file tree 4 files changed +73
-0
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 20
20
<click selector =" {{AdminCustomerGridSection.firstRowEditLink}}" stepKey =" clickEdit" />
21
21
<waitForPageLoad stepKey =" waitForPageLoad2" />
22
22
</actionGroup >
23
+ <actionGroup name =" OpenEditCustomerAddressFromAdminActionGroup" >
24
+ <arguments >
25
+ <argument name =" address" />
26
+ </arguments >
27
+ <click selector =" {{AdminCustomerAccountInformationSection.addressesButton}}" stepKey =" openAddressesTab" />
28
+ <waitForElementVisible selector =" {{AdminCustomerAddressFiltersSection.filtersButton}}" stepKey =" waitForComponentLoad" />
29
+ <click selector =" {{AdminCustomerAddressFiltersSection.filtersButton}}" stepKey =" openAddressesFilter" />
30
+ <fillField userInput =" {{address.firstname}}" selector =" {{AdminCustomerAddressFiltersSection.firstnameInput}}" stepKey =" fillFirstname" />
31
+ <fillField userInput =" {{address.lastname}}" selector =" {{AdminCustomerAddressFiltersSection.lastnameInput}}" stepKey =" fillLastname" />
32
+ <fillField userInput =" {{address.telephone}}" selector =" {{AdminCustomerAddressFiltersSection.telephoneInput}}" stepKey =" fillCountry" />
33
+ <fillField userInput =" {{address.postcode}}" selector =" {{AdminCustomerAddressFiltersSection.postcodeInput}}" stepKey =" fillPostcode" />
34
+ <click selector =" {{AdminCustomerAddressFiltersSection.applyFilter}}" stepKey =" applyAddressesFilter" />
35
+ <waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappear" />
36
+ <click selector =" {{AdminCustomerAddressGridSection.firstRowSelectActionLink}}" stepKey =" clickAction" />
37
+ <click selector =" {{AdminCustomerAddressGridSection.firstRowEditActionLink}}" stepKey =" clickEdit" />
38
+ <waitForPageLoad stepKey =" waitForModalWindow" />
39
+ </actionGroup >
23
40
<actionGroup name =" DeleteCustomerFromAdminActionGroup" >
24
41
<arguments >
25
42
<argument name =" customer" />
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCustomerAddressFiltersSection" >
12
+ <element name =" filtersButton" type =" button" selector =" button[data-action='grid-filter-expand']" timeout =" 30" />
13
+ <element name =" firstnameInput" type =" input" selector =" input[name=firstname]" />
14
+ <element name =" lastnameInput" type =" input" selector =" input[name=lastname]" />
15
+ <element name =" streetInput" type =" input" selector =" input[name=street]" />
16
+ <element name =" cityInput" type =" input" selector =" input[name=city]" />
17
+ <element name =" stateSelector" type =" select" selector =" input[name=input]" />
18
+ <element name =" postcodeInput" type =" input" selector =" input[name=postcode]" />
19
+ <element name =" countryInput" type =" input" selector =" select[name=country_id]" />
20
+ <element name =" telephoneInput" type =" input" selector =" input[name=telephone]" />
21
+ <element name =" applyFilter" type =" button" selector =" button[data-action=grid-filter-apply]" timeout =" 30" />
22
+ <element name =" clearAll" type =" button" selector =" .admin__data-grid-header .action-tertiary.action-clear" />
23
+ </section >
24
+ </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
+
9
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCustomerGridMainActionsSection" >
12
+ <element name =" addNewAddress" type =" button" selector =" .add-new-address-button" timeout =" 30" />
13
+ <element name =" actions" type =" text" selector =" .admin__data-grid-header-row .action-select" />
14
+ </section >
15
+ </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
+
9
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCustomerAddressGridSection" >
12
+ <element name =" customerGrid" type =" text" selector =" table[data-role='grid']" />
13
+ <element name =" firstRowSelectActionLink" type =" text" selector =" tr[data-repeat-index='0'] .action-select" timeout =" 30" />
14
+ <element name =" firstRowEditActionLink" type =" text" selector =" tr[data-repeat-index='0'] [data-action='item-edit']" timeout =" 30" />
15
+
16
+ </section >
17
+ </sections >
You can’t perform that action at this time.
0 commit comments