Skip to content

Commit df17fb6

Browse files
committed
B2B-1704: Add MFTF test for MC-38621
- Cleaning up tax helpers
1 parent 2471c69 commit df17fb6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

app/code/Magento/AwsS3/Test/Mftf/Test/AdminAwsS3ExportTaxRatesTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<test name="AdminAwsS3ExportTaxRatesTest" extends="AdminExportTaxRatesTest">
1212
<annotations>
1313
<features value="AwsS3"/>
14-
<stories value="Export"/>
14+
<stories value="Export Tax"/>
1515
<title value="S3 - Export Tax Rates"/>
1616
<description value="Sets S3 for file system. Exports tax rates from the System > Data Transfer > Import/Export Tax Rates page and
1717
validates contents in downloaded file. Note that MFTF cannot simply click export and have access to the file

app/code/Magento/Tax/Test/Mftf/Helper/TaxHelpers.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
namespace Magento\Tax\Test\Mftf\Helper;
99

10-
use Facebook\WebDriver\Remote\RemoteWebDriver as FacebookWebDriver;
1110
use Facebook\WebDriver\WebDriverBy;
1211
use Magento\FunctionalTestingFramework\Helper\Helper;
13-
use Magento\FunctionalTestingFramework\Module\MagentoWebDriver;
1412

1513
/**
1614
* Class for MFTF helpers for Tax module.
@@ -36,12 +34,11 @@ public function deleteAllSpecifiedTaxRuleRows(
3634
string $successMessageContainer
3735
): void {
3836
try {
39-
/** @var MagentoWebDriver $webDriver */
4037
$magentoWebDriver = $this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver');
41-
/** @var FacebookWebDriver $webDriver */
42-
$webDriver = $magentoWebDriver->webDriver;
38+
$facebookWebDriver = $magentoWebDriver->webDriver;
39+
4340
$magentoWebDriver->waitForPageLoad(30);
44-
$rows = $webDriver->findElements(WebDriverBy::xpath($rowsToDelete));
41+
$rows = $facebookWebDriver->findElements(WebDriverBy::xpath($rowsToDelete));
4542
while (!empty($rows)) {
4643
$rows[0]->click();
4744
$magentoWebDriver->waitForPageLoad(30);
@@ -52,7 +49,7 @@ public function deleteAllSpecifiedTaxRuleRows(
5249
$magentoWebDriver->click($modalAcceptButton);
5350
$magentoWebDriver->waitForPageLoad(60);
5451
$magentoWebDriver->waitForText($successMessage, 10, $successMessageContainer);
55-
$rows = $webDriver->findElements(WebDriverBy::xpath($rowsToDelete));
52+
$rows = $facebookWebDriver->findElements(WebDriverBy::xpath($rowsToDelete));
5653
}
5754
} catch (\Exception $exception) {
5855
$this->fail($exception->getMessage());

0 commit comments

Comments
 (0)