|
19 | 19 | <group value="mtf_migrated"/>
|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 |
| - <createData entity="taxRateCustomRateUS" stepKey="createTaxRateCustomRateUS"/> |
| 22 | + <createData entity="defaultTaxRate" stepKey="initialTaxRate"/> |
23 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
24 | 24 | </before>
|
25 | 25 | <after>
|
26 |
| - <deleteData stepKey="deleteTaxRate" createDataKey="createTaxRateCustomRateUS" /> |
| 26 | + <deleteData stepKey="deleteTaxRate" createDataKey="initialTaxRate" /> |
27 | 27 | </after>
|
28 | 28 |
|
29 | 29 | <!-- Search the tax rate on tax grid page -->
|
30 | 30 | <amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
|
31 | 31 | <waitForPageLoad stepKey="waitForTaxRateIndex1"/>
|
32 | 32 | <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters1"/>
|
33 |
| - <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="$$createTaxRateCustomRateUS.code$$" stepKey="fillCode"/> |
| 33 | + <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="$$initialTaxRate.code$$" stepKey="fillCode"/> |
34 | 34 | <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch1"/>
|
35 | 35 | <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow1"/>
|
36 | 36 |
|
37 | 37 | <!-- Update values on the tax rate form page -->
|
38 |
| - <fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/> |
39 |
| - <selectOption selector="{{AdminTaxRateFormSection.country}}" userInput="United States" stepKey="selectCountry1"/> |
40 |
| - <selectOption selector="{{AdminTaxRateFormSection.state}}" userInput="California" stepKey="selectState"/> |
41 |
| - <fillField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="90001" stepKey="fillPostCode"/> |
42 |
| - <fillField selector="{{AdminTaxRateFormSection.rate}}" userInput="100" stepKey="fillRate1"/> |
| 38 | + <fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{taxRateCustomRateUS.code}}" stepKey="fillTaxIdentifierField2"/> |
| 39 | + <selectOption selector="{{AdminTaxRateFormSection.country}}" userInput="{{taxRateCustomRateUS.tax_country_id}}" stepKey="selectCountry1"/> |
| 40 | + <selectOption selector="{{AdminTaxRateFormSection.state}}" userInput="{{taxRateCustomRateUS.tax_region_id}}" stepKey="selectState"/> |
| 41 | + <fillField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="{{taxRateCustomRateUS.tax_postcode}}" stepKey="fillPostCode"/> |
| 42 | + <fillField selector="{{AdminTaxRateFormSection.rate}}" userInput="{{taxRateCustomRateUS.rate}}" stepKey="fillRate1"/> |
43 | 43 | <click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
|
44 | 44 | <see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>
|
45 | 45 |
|
46 | 46 | <!-- Verify we see updated TaxIdentifier(from the above step) on the tax rate grid page -->
|
47 | 47 | <amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex4"/>
|
48 | 48 | <waitForPageLoad stepKey="waitForTaxRateIndex2"/>
|
49 | 49 | <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
|
50 |
| - <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField3"/> |
| 50 | + <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{taxRateCustomRateUS.code}}" stepKey="fillTaxIdentifierField3"/> |
51 | 51 | <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/>
|
52 | 52 | <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow2"/>
|
53 | 53 | <!-- Verify we see updated values on the tax rate form page -->
|
54 |
| - <seeInField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeRTaxIdentifier"/> |
55 |
| - <seeOptionIsSelected selector="{{AdminTaxRateFormSection.country}}" userInput="United States" stepKey="seeCountry2"/> |
56 |
| - <seeOptionIsSelected selector="{{AdminTaxRateFormSection.state}}" userInput="California" stepKey="seeState2"/> |
57 |
| - <seeInField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="90001" stepKey="seeZipCode"/> |
58 |
| - <seeInField selector="{{AdminTaxRateFormSection.rate}}" userInput="100" stepKey="seeRate2"/> |
| 54 | + <seeInField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{taxRateCustomRateUS.code}}" stepKey="seeRTaxIdentifier"/> |
| 55 | + <seeOptionIsSelected selector="{{AdminTaxRateFormSection.country}}" userInput="{{taxRateCustomRateUS.tax_country}}" stepKey="seeCountry2"/> |
| 56 | + <seeOptionIsSelected selector="{{AdminTaxRateFormSection.state}}" userInput="{{taxRateCustomRateUS.tax_region}}" stepKey="seeState2"/> |
| 57 | + <seeInField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="{{taxRateCustomRateUS.tax_postcode}}" stepKey="seeZipCode"/> |
| 58 | + <seeInField selector="{{AdminTaxRateFormSection.rate}}" userInput="{{taxRateCustomRateUS.rate}}" stepKey="seeRate2"/> |
59 | 59 | </test>
|
60 | 60 | </tests>
|
0 commit comments