Skip to content

Commit 7e3dc21

Browse files
committed
B2B-1655: Add MFTF test for MC-38949
- Adding checks for imported files - Adding new AWS module
1 parent 42824c2 commit 7e3dc21

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed
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)