|
| 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="StoreFrontZeroTaxSettingCheckOnCartPage"> |
| 12 | + <annotations> |
| 13 | + <stories value="Storefront cart page"/> |
| 14 | + <title value="Zero tax configuration for multiple shipping methods on Cart page"/> |
| 15 | + <description value="Zero tax configuration for multiple shipping methods on Cart page"/> |
| 16 | + <severity value="MINOR"/> |
| 17 | + <testCaseId value="AC-3201"/> |
| 18 | + <group value="Tax"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
| 22 | + <actionGroup ref="ZeroTaxSubtotalActionGroup" stepKey="zerosubtotal"/> |
| 23 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 24 | + <createData entity="SimpleProduct" stepKey="createProduct01"> |
| 25 | + <requiredEntity createDataKey="createCategory"/> |
| 26 | + </createData> |
| 27 | + </before> |
| 28 | + <after> |
| 29 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 30 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 31 | + <deleteData createDataKey="createProduct01" stepKey="deleteProduct1"/> |
| 32 | + </after> |
| 33 | + |
| 34 | + <amOnPage url="$$createProduct01.custom_attributes[url_key]$$.html" stepKey="goToSimpleProductPage"/> |
| 35 | + <waitForPageLoad stepKey="waitForSimpleProductPage"/> |
| 36 | + <waitForElementClickable selector="{{StorefrontProductActionSection.addToCart}}" stepKey="waitForAddToCartButton"/> |
| 37 | + <click stepKey="addSimpleProductToCart" selector="{{StorefrontProductActionSection.addToCart}}"/> |
| 38 | + <waitForPageLoad stepKey="waitForProductAdded"/> |
| 39 | + <see stepKey="seeSuccess" selector="{{StorefrontMessagesSection.success}}" userInput="You added"/> |
| 40 | + <actionGroup ref="StorefrontCartPageOpenActionGroup" stepKey="goToCartPage" /> |
| 41 | + <dontSeeElement selector="//*[@id='cart-totals']/div/table/tbody/tr[2]/th[contains(text(),'Tax')]" stepKey="checkZerotaxVisible"/> |
| 42 | + </test> |
| 43 | +</tests> |
0 commit comments