Skip to content

Commit 88a56b5

Browse files
committed
Adjusting the ActionGroup
1 parent 5078e77 commit 88a56b5

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

app/code/Magento/ImportExport/Test/Mftf/ActionGroup/AdminAssertVisiblePagerActionGroup.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAssertVisiblePagerActionGroup">
12-
<see selector=".admin__data-grid-header .admin__control-support-text" userInput="records found" stepKey="seeRecordsLabel"/>
13-
<seeElement selector=".admin__data-grid-header div.admin__data-grid-pager-wrap" stepKey="seeGridPager"/>
12+
<arguments>
13+
<argument name="recordsLabel" type="string" defaultValue="records found"/>
14+
</arguments>
15+
<see selector="{{AdminExportGridPagerSection.recordsLabel}}" userInput="{{recordsLabel}}" stepKey="seeRecordsLabel"/>
16+
<seeElement selector="{{AdminExportGridPagerSection.pager}}" stepKey="seeGridPager"/>
1417
</actionGroup>
1518
</actionGroups>

app/code/Magento/ImportExport/Test/Mftf/Page/AdminExportIndexPage.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
1111
<page name="AdminExportIndexPage" url="admin/export/" area="admin" module="Magento_ImportExport">
1212
<section name="AdminExportMainSection"/>
13+
<section name="AdminExportGridPagerSection"/>
1314
</page>
1415
</pages>
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="AdminExportGridPagerSection">
12+
<element name="pager" type="text" selector=".admin__data-grid-header div.admin__data-grid-pager-wrap"/>
13+
<element name="recordsLabel" type="text" selector=".admin__data-grid-header .admin__control-support-text"/>
14+
</section>
15+
</sections>

0 commit comments

Comments
 (0)