|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 9 | + <test name="StorefrontCheckoutSummaryItemsInCartLabelPluralizedTest"> |
| 10 | + <annotations> |
| 11 | + <features value="Checkout"/> |
| 12 | + <stories value="Checkout page order summary section 'Item in Cart' is pluralized correctly or not"/> |
| 13 | + <title value="'Item in Cart' is pluralized correctly"/> |
| 14 | + <description value="When adding more then 1 item and check checkout page order summary section text 'Items in Cart' is pluralized correctly or not"/> |
| 15 | + <severity value="AVERAGE"/> |
| 16 | + <group value="Checkout"/> |
| 17 | + </annotations> |
| 18 | + <before> |
| 19 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 20 | + <createData entity="ApiSimpleProduct" stepKey="createProduct"> |
| 21 | + <requiredEntity createDataKey="createCategory"/> |
| 22 | + <field key="price">100.00</field> |
| 23 | + </createData> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/> |
| 27 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 28 | + </after> |
| 29 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPage"> |
| 30 | + <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCart"> |
| 33 | + <argument name="quantity" value="1"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickOnMiniCart"/> |
| 36 | + <see selector="{{StorefrontMinicartSection.productCountLabel}}" userInput="Item in Cart" stepKey="seeProductCountLabel"/> |
| 37 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPage"/> |
| 38 | + <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/> |
| 39 | + <see selector="{{CheckoutCartSummarySection.itemsInCartLabel}}" userInput="Item in Cart" stepKey="seeFirstProductInList"/> |
| 40 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPageAgain"> |
| 41 | + <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
| 42 | + </actionGroup> |
| 43 | + <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCartAgain"> |
| 44 | + <argument name="quantity" value="4"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="StorefrontClickOnMiniCartActionGroup" stepKey="clickOnMiniCartAgain"/> |
| 47 | + <see selector="{{StorefrontMinicartSection.productCountLabel}}" userInput="Items in Cart" stepKey="seeProductCountLabelAgain"/> |
| 48 | + <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPageAgain"/> |
| 49 | + <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoadAgain"/> |
| 50 | + <see selector="{{CheckoutCartSummarySection.itemsInCartLabel}}" userInput="Items in Cart" stepKey="seeFirstProductInListAgain"/> |
| 51 | + </test> |
| 52 | +</tests> |
0 commit comments