|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StorefrontEstimateShippingTaxTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Checkout"/> |
| 14 | + <stories value="Estimate Shipping Tax"/> |
| 15 | + <title value="Tax and Shipping Estimator in the Cart not reflecting default destination configuration."/> |
| 16 | + <description value="Tax and Shipping Estimator in the Cart not reflecting default destination configuration."/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value=""/> |
| 19 | + <useCaseId value="ACP2E-1580"/> |
| 20 | + <group value="checkout"/> |
| 21 | + </annotations> |
| 22 | + |
| 23 | + <before> |
| 24 | + <!-- Create simple product --> |
| 25 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 26 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 27 | + </before> |
| 28 | + |
| 29 | + <after> |
| 30 | + <!-- Delete simple product --> |
| 31 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 32 | + <!--Reset default tax destination calculation--> |
| 33 | + <actionGroup ref="AdminResetDefaultTaxDestinationActionGroup" stepKey="resetDefaultTaxDestination"/> |
| 34 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
| 35 | + </after> |
| 36 | + |
| 37 | + <actionGroup ref="AdminSetDefaultTaxDestinationActionGroup" stepKey="setDefaultTaxDestination"> |
| 38 | + <argument name="country" value="{{US_Address_NY.country}}"/> |
| 39 | + <argument name="state" value="{{US_Address_NY.state}}"/> |
| 40 | + <argument name="postcode" value="{{US_Address_NY.postcode}}"/> |
| 41 | + </actionGroup> |
| 42 | + |
| 43 | + <!-- Add simple product to cart as Guest --> |
| 44 | + <amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="goToProductPage"/> |
| 45 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 46 | + <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddSimpleProductToCart"> |
| 47 | + <argument name="product" value="$$createProduct$$"/> |
| 48 | + <argument name="productCount" value="1"/> |
| 49 | + </actionGroup> |
| 50 | + |
| 51 | + <!-- Go to Checkout page --> |
| 52 | + <actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="goToShoppingCartFromMinicart"/> |
| 53 | + <actionGroup ref="AssertStorefrontCheckoutCartEstimateShippingAndTaxAddressActionGroup" stepKey="checkAddress"> |
| 54 | + <argument name="country" value="{{US_Address_NY.country}}"/> |
| 55 | + <argument name="state" value="{{US_Address_NY.state}}"/> |
| 56 | + <argument name="postcode" value="{{US_Address_NY.postcode}}"/> |
| 57 | + </actionGroup> |
| 58 | + </test> |
| 59 | +</tests> |
0 commit comments