|
16 | 16 | <description value="Exports tax rates from the System > Data Transfer > Import/Export Tax Rates page and
|
17 | 17 | validates contents in downloaded file. Note that MFTF cannot simply click export and have access to the file
|
18 | 18 | that is downloaded in the browser due to the test not having access to the server that is running the test
|
19 |
| - browser. Therefore, this test clicks the Export button, grabs the request URI from the browser, and executes |
20 |
| - the same request on the magento machine via a curl request to download the same file there so that the test |
21 |
| - has access to the exported file."/> |
| 19 | + browser. Therefore, this test verifies that the Export button can be successfully clicked, grabs the request |
| 20 | + URL from the Export button's form, executes the request on the magento machine via a curl request, and |
| 21 | + verifies the contents of the exported file."/> |
22 | 22 | <severity value="MAJOR"/>
|
23 | 23 | <testCaseId value="MC-38949"/>
|
24 | 24 | <group value="importExport"/>
|
|
41 | 41 |
|
42 | 42 | <!-- Export Tax Rates & Validate Export -->
|
43 | 43 | <actionGroup ref="AdminNavigateImportExportTaxRatesActionGroup" stepKey="navigateToImportExportTaxRatesPage"/>
|
44 |
| - <actionGroup ref="AdminExportTaxRatesActionGroup" stepKey="exportTaxRates"/> |
45 |
| - <executeJS function="return window.performance.getEntriesByName('mousedown')[0].target.baseURI" stepKey="exportURI"/> |
46 |
| - <comment userInput="{$exportURI}" stepKey="commentExportURI"/> |
47 |
| - <executeJS function="return window.location.origin" stepKey="baseUrl"/> |
| 44 | + <actionGroup ref="AdminClickExportTaxRatesActionGroup" stepKey="exportTaxRates"/> |
| 45 | + <grabAttributeFrom userInput="action" selector="{{AdminImportExportTaxRatesSection.exportTaxRatesButtonForm}}" stepKey="grabExportUrl"/> |
48 | 46 | <helper class="\Magento\TaxImportExport\Test\Mftf\Helper\CurlHelpers" method="assertCurlResponseContainsString" stepKey="assertExportedFileContainsCATaxRate">
|
49 |
| - <argument name="uri">{$baseUrl}/admin/tax/rate/exportPost/</argument> |
| 47 | + <argument name="url">{$grabExportUrl}</argument> |
50 | 48 | <argument name="expectedString">{{US_CA_Rate_1.code}}</argument>
|
51 | 49 | </helper>
|
52 | 50 | <helper class="\Magento\TaxImportExport\Test\Mftf\Helper\CurlHelpers" method="assertCurlResponseContainsString" stepKey="assertExportedFileContainsNYTaxRate">
|
53 |
| - <argument name="uri">{$baseUrl}/admin/tax/rate/exportPost/</argument> |
| 51 | + <argument name="url">{$grabExportUrl}</argument> |
54 | 52 | <argument name="expectedString">{{US_NY_Rate_1.code}}</argument>
|
55 | 53 | </helper>
|
56 | 54 | </test>
|
|
0 commit comments