Skip to content

Commit 3fcd59e

Browse files
committed
MC-5801: Delete tax rate
1 parent d1ad3e0 commit 3fcd59e

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

app/code/Magento/Tax/Test/Mftf/Section/AdminTaxRateGridSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<element name="filterByCountry" type="input" selector="#tax_rate_grid_filter_tax_country_id"/>
1717
<element name="filterByPostCode" type="input" selector="#tax_rate_grid_filter_tax_postcode"/>
1818
<element name="nthRow" type="block" selector="tr[data-role='row']:nth-of-type({{var}})" parameterized="true" timeout="30"/>
19-
<element name="success" type="text" selector=".empty-text"/>
19+
<element name="emptyText" type="text" selector=".empty-text"/>
2020
</section>
2121
</sections>

app/code/Magento/Tax/Test/Mftf/Section/AdminTaxRuleFormSection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminTaxRuleFormSection">
1212
<element name="taxIdentifier" type="input" selector="input.admin__control-text admin__action-multiselect-search"/>
13+
<element name="taxRateSearch" type="input" selector="input[data-role='advanced-select-text']"/>
14+
<element name="fieldTaxRate" type="block" selector="div.field-tax_rate"/>
1315
</section>
1416
</sections>

app/code/Magento/Tax/Test/Mftf/Section/AdminTaxRuleGridSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<element name="add" type="button" selector="#add" timeout="30"/>
1313
<element name="search" type="button" selector="button[data-action='grid-filter-apply']" timeout="30"/>
1414
<element name="filterByTaxIdentifier" type="text" selector="#taxRuleGrid_filter_code"/>
15-
<element name="success" type="text" selector=".empty-text"/>
1615
</section>
1716
</sections>
1817

app/code/Magento/Tax/Test/Mftf/Test/DeleteTaxRateEntityTest.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
4343
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{defaultTaxRate.code}}" stepKey="fillTaxIdentifierField3"/>
4444
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/>
45-
<see selector="{{AdminTaxRateGridSection.success}}" userInput="We couldn't find any records." stepKey="seeSuccess"/>
45+
<see selector="{{AdminTaxRateGridSection.emptyText}}" userInput="We couldn't find any records." stepKey="seeSuccess"/>
4646

4747
<!-- Confirm Deleted TaxIdentifier on the tax rule grid page -->
4848
<amOnPage url="{{AdminTaxRuleGridPage.url}}" stepKey="goToTaxRuleIndex3"/>
49-
<waitForPageLoad stepKey="waitForTaxRateIndex4"/>
50-
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters3"/>
51-
<fillField selector="{{AdminTaxRuleGridSection.filterByTaxIdentifier}}" userInput="{{defaultTaxRate.code}}" stepKey="fillCode3"/>
52-
<click selector="{{AdminTaxRuleGridSection.search}}" stepKey="clickSearch3"/>
53-
<see selector="{{AdminTaxRuleGridSection.success}}" userInput="We couldn't find any records." stepKey="seeSuccess3"/>
49+
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
50+
<waitForPageLoad stepKey="waitForTaxRuleIndex1"/>
51+
<fillField selector="{{AdminTaxRuleFormSection.taxRateSearch}}" userInput="$$initialTaxRate.code$$" stepKey="fillTaxRateSearch"/>
52+
<wait stepKey="waitForSearch" time="5" />
53+
<dontSee selector="{{AdminTaxRuleFormSection.fieldTaxRate}}" userInput="$$initialTaxRate.code$$" stepKey="dontSeeInTaxRuleForm"/>
5454
</test>
5555
</tests>

0 commit comments

Comments
 (0)