File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
app/code/Magento/Tax/Test/Mftf Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 16
16
<element name =" filterByCountry" type =" input" selector =" #tax_rate_grid_filter_tax_country_id" />
17
17
<element name =" filterByPostCode" type =" input" selector =" #tax_rate_grid_filter_tax_postcode" />
18
18
<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" />
20
20
</section >
21
21
</sections >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminTaxRuleFormSection" >
12
12
<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" />
13
15
</section >
14
16
</sections >
Original file line number Diff line number Diff line change 12
12
<element name =" add" type =" button" selector =" #add" timeout =" 30" />
13
13
<element name =" search" type =" button" selector =" button[data-action='grid-filter-apply']" timeout =" 30" />
14
14
<element name =" filterByTaxIdentifier" type =" text" selector =" #taxRuleGrid_filter_code" />
15
- <element name =" success" type =" text" selector =" .empty-text" />
16
15
</section >
17
16
</sections >
18
17
Original file line number Diff line number Diff line change 42
42
<click selector =" {{AdminDataGridHeaderSection.clearFilters}}" stepKey =" clickClearFilters2" />
43
43
<fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{defaultTaxRate.code}}" stepKey =" fillTaxIdentifierField3" />
44
44
<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" />
46
46
47
47
<!-- Confirm Deleted TaxIdentifier on the tax rule grid page -->
48
48
<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 " />
54
54
</test >
55
55
</tests >
You can’t perform that action at this time.
0 commit comments