File tree Expand file tree Collapse file tree 13 files changed +80
-19
lines changed
app/code/Magento/Tax/Test/Mftf Expand file tree Collapse file tree 13 files changed +80
-19
lines changed Original file line number Diff line number Diff line change 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+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" >
12+ <annotations >
13+ <description >Fill the Filter By Tax Identifier field with taxRateCode.</description >
14+ </annotations >
15+ <arguments >
16+ <argument name =" taxRateCode" type =" string" />
17+ </arguments >
18+
19+ <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{taxRateCode}}" stepKey =" fillNameFilter" />
20+ </actionGroup >
21+ </actionGroups >
Original file line number Diff line number Diff line change 4444 <!-- Verify the tax rate grid page shows the tax rate we just created -->
4545 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4646 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters1" />
47- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillNameFilter" />
47+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillNameFilter" >
48+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
49+ </actionGroup >
4850 <selectOption selector =" {{AdminTaxRateGridSection.filterByCountry}}" userInput =" Australia" stepKey =" fillCountryFilter" />
4951 <fillField selector =" {{AdminTaxRateGridSection.filterByPostCode}}" userInput =" *" stepKey =" fillPostCodeFilter" />
5052 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch" />
5557 <!-- Go to the tax rate edit page for our new tax rate -->
5658 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex3" />
5759 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
58- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillNameFilter2" />
60+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillNameFilter2" >
61+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
62+ </actionGroup >
5963 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
6064 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow" />
6165
Original file line number Diff line number Diff line change 4646 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4747 <!-- Create a tax rate for large postcodes and verify we see expected values on the tax rate grid page -->
4848 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
49- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillTaxIdentifierField2" />
49+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField2" >
50+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
51+ </actionGroup >
5052 <selectOption selector =" {{AdminTaxRateGridSection.filterByCountry}}" userInput =" France" stepKey =" selectCountry2" />
5153 <fillField selector =" {{AdminTaxRateGridSection.filterByPostCode}}" userInput =" *" stepKey =" seeTaxPostCode1" />
5254 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
Original file line number Diff line number Diff line change 4646 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4747 <!-- Verify the tax rate grid page shows the specific postcode we just created -->
4848 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters1" />
49- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillTaxIdentifierField2" />
49+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField2" >
50+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
51+ </actionGroup >
5052 <selectOption selector =" {{AdminTaxRateGridSection.filterByCountry}}" userInput =" Canada" stepKey =" fillCountryFilter" />
5153 <fillField selector =" {{AdminTaxRateGridSection.filterByPostCode}}" userInput =" 180" stepKey =" fillPostCodeFilter" />
5254 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch" />
Original file line number Diff line number Diff line change 4646 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4747 <!-- Create a tax rate for zipCodeRange and verify we see expected values on the tax rate grid page -->
4848 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
49- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillTaxIdentifierField2" />
49+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField2" >
50+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
51+ </actionGroup >
5052 <selectOption selector =" {{AdminTaxRateGridSection.filterByCountry}}" userInput =" United Kingdom" stepKey =" selectCountry2" />
5153 <fillField selector =" {{AdminTaxRateGridSection.filterByPostCode}}" userInput =" 1-7800935" stepKey =" seeTaxPostCode1" />
5254 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
Original file line number Diff line number Diff line change 4747 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4848 <!-- Create a tax rate for zipCodeRange and verify we see expected values on the tax rate grid page -->
4949 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
50- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{SimpleTaxRate.code}}" stepKey =" fillTaxIdentifierField2" />
50+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField2" >
51+ <argument name =" taxRateCode" value =" {{SimpleTaxRate.code}}" />
52+ </actionGroup >
5153 <selectOption selector =" {{AdminTaxRateGridSection.filterByCountry}}" userInput =" United States" stepKey =" selectCountry2" />
5254 <fillField selector =" {{AdminTaxRateGridSection.filterByPostCode}}" userInput =" 90001-96162" stepKey =" seeTaxPostCode1" />
5355 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
Original file line number Diff line number Diff line change 3737 <!-- Confirm Deleted TaxIdentifier(from the above step) on the tax rate grid page -->
3838 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
3939 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
40- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{defaultTaxRate.code}}" stepKey =" fillTaxIdentifierField3" />
40+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField3" >
41+ <argument name =" taxRateCode" value =" {{defaultTaxRate.code}}" />
42+ </actionGroup >
4143 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
4244 <see selector =" {{AdminTaxRateGridSection.emptyText}}" userInput =" We couldn't find any records." stepKey =" seeSuccess" />
4345
Original file line number Diff line number Diff line change 2929 <!-- Search the tax rate on tax grid page -->
3030 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex1" />
3131 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters1" />
32- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" $$initialTaxRate.code$$" stepKey =" fillCode" />
32+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillCode" >
33+ <argument name =" taxRateCode" value =" $$initialTaxRate.code$$" />
34+ </actionGroup >
3335 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch1" />
3436 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow1" />
3537
4648 <!-- Verify we see updated 0.1 tax rate(from the above step) on the tax rate grid page -->
4749 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex4" />
4850 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
49- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{taxRateCustomRateFrance.code}}" stepKey =" fillTaxIdentifierField3" />
51+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField3" >
52+ <argument name =" taxRateCode" value =" {{taxRateCustomRateFrance.code}}" />
53+ </actionGroup >
5054 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
5155 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow2" />
5256 <!-- Verify we see updated 0.1 tax rate on the tax rate form page -->
Original file line number Diff line number Diff line change 2929 <!-- Search the tax rate on tax grid page -->
3030 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex1" />
3131 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters1" />
32- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" $$initialTaxRate.code$$" stepKey =" fillCode" />
32+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillCode" >
33+ <argument name =" taxRateCode" value =" $$initialTaxRate.code$$" />
34+ </actionGroup >
3335 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch1" />
3436 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow1" />
3537
4547 <!-- Verify we see updated TaxIdentifier(from the above step) on the tax rate grid page -->
4648 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex4" />
4749 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
48- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{taxRateCustomRateUS.code}}" stepKey =" fillTaxIdentifierField3" />
50+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField3" >
51+ <argument name =" taxRateCode" value =" {{taxRateCustomRateUS.code}}" />
52+ </actionGroup >
4953 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
5054 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow2" />
5155 <!-- Verify we see updated values on the tax rate form page -->
Original file line number Diff line number Diff line change 2929 <!-- Search the tax identifier on tax grid page -->
3030 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex1" />
3131 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters1" />
32- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" $$initialTaxRate.code$$" stepKey =" fillCode1" />
32+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillCode1" >
33+ <argument name =" taxRateCode" value =" $$initialTaxRate.code$$" />
34+ </actionGroup >
3335 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch1" />
3436 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow1" />
3537
4648 <!-- Verify we see updated tax rate(from the above step) on the tax rate grid page -->
4749 <actionGroup ref =" AdminTaxRateGridOpenPageActionGroup" stepKey =" goToTaxRateIndex2" />
4850 <actionGroup ref =" AdminClearGridFiltersActionGroup" stepKey =" clickClearFilters2" />
49- <fillField selector =" {{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput =" {{taxRateCustomRateUK.code}}" stepKey =" fillTaxIdentifierField2" />
51+ <actionGroup ref =" AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey =" fillTaxIdentifierField2" >
52+ <argument name =" taxRateCode" value =" {{taxRateCustomRateUK.code}}" />
53+ </actionGroup >
5054 <click selector =" {{AdminTaxRateGridSection.search}}" stepKey =" clickSearch2" />
5155 <click selector =" {{AdminTaxRateGridSection.nthRow('1')}}" stepKey =" clickFirstRow2" />
5256 <!-- Verify we see updated tax rate on the tax rate form page -->
You can’t perform that action at this time.
0 commit comments