Skip to content

Commit 610799c

Browse files
committed
B2B-1704: Add MFTF test for MC-38621
- Adding S3 mftf test - Removing pause action - Updating export actiongroup
1 parent e2c9870 commit 610799c

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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="AdminAwsS3ImportTaxRatesTest" extends="AdminImportTaxRatesTest">
12+
<annotations>
13+
<features value="AwsS3"/>
14+
<stories value="Import Tax"/>
15+
<title value="S3 - Import and Update Tax Rates"/>
16+
<description value="Imports tax rates to create new tax rates and update existing tax rates. Verifies
17+
results on tax rates grid page. Sets S3 for file system."/>
18+
<severity value="MAJOR"/>
19+
<testCaseId value="MC-38949"/>
20+
<group value="importExport"/>
21+
<group value="tax"/>
22+
</annotations>
23+
24+
<before>
25+
<!-- Enable AWS S3 Remote Storage -->
26+
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.enable_options}}" stepKey="enableRemoteStorage" before="loginAsAdmin"/>
27+
</before>
28+
29+
<after>
30+
<!-- Disable AWS S3 Remote Storage -->
31+
<magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/>
32+
</after>
33+
</test>
34+
</tests>

app/code/Magento/TaxImportExport/Test/Mftf/ActionGroup/AdminExportTaxRatesActionGroup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
<annotations>
1313
<description>Clicks the 'Export Tax Rates' button.</description>
1414
</annotations>
15+
<waitForElementVisible selector="{{AdminImportExportTaxRatesSection.exportTaxRatesButton}}" stepKey="waitForExportTaxRates"/>
16+
<click selector="{{AdminImportExportTaxRatesSection.exportTaxRatesButton}}" stepKey="clickExportTaxRates"/>
17+
<waitForPageLoad stepKey="waitForImport"/>
1518
</actionGroup>
1619
</actionGroups>

app/code/Magento/TaxImportExport/Test/Mftf/Test/AdminImportTaxRatesTest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
<argument name="file" value="{{import_tax_rates.filename}}"/>
4242
</actionGroup>
4343

44-
45-
<pause stepKey="pause"/>
46-
4744
<!-- Verify Imported Tax Rates -->
4845
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="navigateToTaxRatesPage"/>
4946
<actionGroup ref="AdminFilterLegacyGridActionGroup" stepKey="filterGridCA">

0 commit comments

Comments
 (0)