Skip to content

Commit 90359fe

Browse files
committed
MAGETWO-96906: [MAGETWO-94346] PR stabilization
1 parent eb7eb48 commit 90359fe

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/OpenEditCustomerFromAdminActionGroup.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@
2020
<click selector="{{AdminCustomerGridSection.firstRowEditLink}}" stepKey="clickEdit"/>
2121
<waitForPageLoad stepKey="waitForPageLoad2" />
2222
</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>
2340
<actionGroup name="DeleteCustomerFromAdminActionGroup">
2441
<arguments>
2542
<argument name="customer"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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>

0 commit comments

Comments
 (0)