Skip to content

Commit 837b5f1

Browse files
committed
MC-33499: Grid Filter not working for Scheduled Export when selected any kind of Entity Type
1 parent 3b1c8c5 commit 837b5f1

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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="AdminExportAttributeGridFillColumnFilterFieldsAndApplyActionGroup">
11+
<arguments>
12+
<argument name="attributeLabel" type="string" defaultValue=""/>
13+
<argument name="attributeCode" type="string" defaultValue=""/>
14+
</arguments>
15+
16+
<waitForElementVisible selector="{{AdminExportAttributeSection.filterByFrontLabel}}" stepKey="seeFilterByFrontLabel"/>
17+
<fillField selector="{{AdminExportAttributeSection.filterByFrontLabel}}" userInput="{{attributeLabel}}" stepKey="fillAttributeLabelField"/>
18+
<fillField selector="{{AdminExportAttributeSection.filterByAttributeCode}}" userInput="{{attributeCode}}" stepKey="fillAttributeCodeField"/>
19+
<click selector="{{AdminExportAttributeSection.search}}" stepKey="clickSearch"/>
20+
</actionGroup>
21+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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="AssertAdminExportFilterGridFirstRowContainsAttributeCodeActionGroup">
11+
<arguments>
12+
<argument name="attributeCode" type="string" defaultValue="allow_message"/>
13+
</arguments>
14+
15+
<grabTextFrom selector="{{AdminExportAttributeSection.rowAttributeCodeCell('1')}}" stepKey="getTextFirstRowContainsAttributeCode"/>
16+
<assertStringContainsString stepKey="checkTextInFirstRowContainsAttributeCode">
17+
<actualResult type="variable">getTextFirstRowContainsAttributeCode</actualResult>
18+
<expectedResult type="string">{{attributeCode}}</expectedResult>
19+
</assertStringContainsString>
20+
</actionGroup>
21+
</actionGroups>

app/code/Magento/ImportExport/Test/Mftf/Section/AdminExportAttributeSection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1010
<section name="AdminExportAttributeSection">
1111
<element name="filterByAttributeCode" type="input" selector="#export_filter_grid_filter_attribute_code"/>
12+
<element name="filterByFrontLabel" type="input" selector="#export_filter_grid_filter_frontend_label"/>
1213
<element name="resetFilter" type="button" selector="button[data-action='grid-filter-reset']" timeout="30"/>
1314
<element name="search" type="button" selector="button[data-action=grid-filter-apply]" timeout="30"/>
15+
<element name="rowAttributeCodeCell" type="block" selector="//table[@id='export_filter_grid_table']/tbody/tr[{{row}}]/td[contains(@class,'col-attribute_code')]" parameterized="true"/>
1416
<element name="chooseAttribute" type="checkbox" selector="//*[@name='export_filter[{{var}}]']/ancestor::tr//input[@type='checkbox']" parameterized="true"/>
1517
<element name="fillFilter" type="input" selector="//*[@name='export_filter[{{var}}]']/ancestor::tr//input[@type='text']" parameterized="true"/>
1618
<element name="continueBtn" type="button" selector="//*[@id='export_filter_container']/button" timeout="30"/>

0 commit comments

Comments
 (0)