Skip to content

Commit c3e3816

Browse files
committed
Merge branch 'B2B-1655' into B2B-1648
2 parents 36c7713 + bee2635 commit c3e3816

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed

app/code/Magento/Backend/Test/Mftf/ActionGroup/AdminFilterLegacyGridActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
<actionGroup name="AdminFilterLegacyGridActionGroup">
1212
<arguments>
1313
<argument name="value" type="string"/>
14+
<argument name="field" type="string" defaultValue="{{AdminLegacyDataGridFilterSection.inputFieldByNameAttr('name')}}"/>
1415
<argument name="button" type="string" defaultValue="{{AdminLegacyDataGridFilterSection.apply}}"/>
1516
</arguments>
17+
<waitForElementVisible selector="{{AdminLegacyDataGridFilterSection.clear}}" stepKey="waitForResetFilters" />
1618
<click selector="{{AdminLegacyDataGridFilterSection.clear}}" stepKey="resetFilters" />
1719
<waitForPageLoad stepKey="waitForFilterReset" />
1820
<fillField selector="{{field}}" userInput="{{value}}" stepKey="fillFieldInFilter"/>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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="AdminNavigateToConfigurationSystemSectionActionGroup">
12+
<annotations>
13+
<description>Navigates to the specified section in admin on the Stores > Settings > Configuration > Advanced > System page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="section" defaultValue="" type="string"/>
17+
</arguments>
18+
<amOnPage url="{{AdminConfigSystemBySectionPage.url(section)}}" stepKey="navigateToConfigurationSystemPage"/>
19+
</actionGroup>
20+
</actionGroups>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
10+
<page name="AdminConfigSystemBySectionPage" url="admin/system_config/edit/section/system/{{section}}" area="admin" module="Magento_Config" parameterized="true"/>
11+
</pages>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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="AdminDownloadImportHistoryFileActionGroup">
12+
<annotations>
13+
<description>Downloads the imported file for the specified row on the admin System > Data Transfer > Import History page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="rowIndex" defaultValue="1" type="string"/>
17+
</arguments>
18+
<waitForElementVisible selector="{{AdminImportHistorySection.downloadLink(rowIndex)}}" stepKey="waitForDownloadLink"/>
19+
<click selector="{{AdminImportHistorySection.downloadLink(rowIndex)}}" stepKey="clickDownloadLink"/>
20+
<waitForPageLoad stepKey="waitForDownload"/>
21+
</actionGroup>
22+
</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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="AdminImportHistorySection">
12+
<element name="downloadLink" type="button" parameterized="true" selector="#importHistoryGrid_table tbody tr:nth-of-type({{rowIndex}}) [data-column=imported_file] a"/>
13+
<element name="importedFileName" type="text" parameterized="true" selector="#importHistoryGrid_table tbody tr:nth-of-type({{rowIndex}}) [data-column=imported_file] p"/>
14+
</section>
15+
</sections>

0 commit comments

Comments
 (0)