|
20 | 20 | </annotations> |
21 | 21 |
|
22 | 22 | <before> |
| 23 | + <!--Change default tax destination calculation settings--> |
| 24 | + <magentoCLI command="config:set {{DefaultTaxDestinationCountry.path}} {{US_Address_NY.country_id}}" stepKey="selectDefaultCountry"/> |
| 25 | + <magentoCLI command="config:set {{DefaultTaxDestinationRegion.path}} {{RegionNY.region_id}}" stepKey="selectDefaultState"/> |
| 26 | + <magentoCLI command="config:set {{DefaultTaxDestinationPostcode.path}} {{US_Address_NY.postcode}}" stepKey="fillDefaultPostCode"/> |
| 27 | + |
23 | 28 | <!-- Create simple product --> |
24 | 29 | <createData entity="SimpleProduct2" stepKey="createProduct"/> |
25 | 30 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
26 | 31 | </before> |
27 | 32 |
|
28 | 33 | <after> |
| 34 | + <!--Reset default tax destination calculation settings--> |
| 35 | + <magentoCLI command="config:set {{DefaultTaxDestinationCountry.path}} {{DefaultTaxDestinationCountry.value}}" stepKey="resetDefaultCountry"/> |
| 36 | + <magentoCLI command="config:set {{DefaultTaxDestinationRegion.path}} {{DefaultTaxDestinationRegion.value}}" stepKey="resetDefaultState"/> |
| 37 | + <magentoCLI command="config:set {{DefaultTaxDestinationPostcode.path}} {{DefaultTaxDestinationPostcode.value}}" stepKey="resetDefaultPostCode"/> |
| 38 | + |
29 | 39 | <!-- Delete simple product --> |
30 | 40 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
31 | | - <!--Reset default tax destination calculation--> |
32 | | - <actionGroup ref="AdminResetDefaultTaxDestinationActionGroup" stepKey="resetDefaultTaxDestination"/> |
33 | 41 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
34 | 42 | </after> |
35 | 43 |
|
36 | | - <actionGroup ref="AdminSetDefaultTaxDestinationActionGroup" stepKey="setDefaultTaxDestination"> |
| 44 | + <!--Verify the admin setting for default tac and destination calculation--> |
| 45 | + <actionGroup ref="AdminAssertDefaultTaxDestinationActionGroup" stepKey="sssertDefaultTaxDestination"> |
37 | 46 | <argument name="country" value="{{US_Address_NY.country}}"/> |
38 | | - <argument name="state" value="{{US_Address_NY.state}}"/> |
| 47 | + <argument name="state" value="{{RegionNY.region}}"/> |
39 | 48 | <argument name="postcode" value="{{US_Address_NY.postcode}}"/> |
40 | 49 | </actionGroup> |
41 | 50 |
|
|
0 commit comments