Skip to content

Commit 5078e77

Browse files
committed
Adding the MFTF coverage that checks the grid pager
1 parent 9d4530d commit 5078e77

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<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"/>
14+
</actionGroup>
15+
</actionGroups>
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminNavigateToExportPageActionGroup">
12+
<amOnPage url="{{AdminExportIndexPage.url}}" stepKey="navigateToExportPage"/>
13+
<waitForPageLoad stepKey="waitForExportPageOpened"/>
14+
</actionGroup>
15+
</actionGroups>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminExportPagerGridTest">
12+
<annotations>
13+
<features value="ImportExport"/>
14+
<stories value="Export Grid"/>
15+
<title value="Testing if the grid is present on export page"/>
16+
<description value="Admin should be able to see the grid onn export page"/>
17+
<severity value="CRITICAL"/>
18+
<group value="importExport"/>
19+
</annotations>
20+
<before>
21+
<actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/>
22+
</before>
23+
<after>
24+
<actionGroup ref="logout" stepKey="logout"/>
25+
</after>
26+
<actionGroup ref="AdminNavigateToExportPageActionGroup" stepKey="navigateToExportPage"/>
27+
<actionGroup ref="AdminAssertVisiblePagerActionGroup" stepKey="seeGridPager"/>
28+
</test>
29+
</tests>

0 commit comments

Comments
 (0)