|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright 2025 Adobe |
| 5 | + * All Rights Reserved. |
| 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="StoreFrontValidateGroupedProductQuantityInputErrorMessageTest"> |
| 12 | + <annotations> |
| 13 | + <features value="GroupedProduct"/> |
| 14 | + <stories value="Verify grouped product qty validation message in Storefront"/> |
| 15 | + <title value="Grouped product qty validation should be displayed only on invalid qty textbox"/> |
| 16 | + <description value="Grouped product qty validation should be displayed only on invalid qty textbox"/> |
| 17 | + <testCaseId value="AC-13325"/> |
| 18 | + <severity value="MAJOR"/> |
| 19 | + <group value="GroupedProduct"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="ApiProductWithDescription" stepKey="simple1"/> |
| 23 | + <createData entity="ApiProductWithDescription" stepKey="simple2"/> |
| 24 | + <createData entity="ApiProductWithDescription" stepKey="simple3"/> |
| 25 | + <createData entity="ApiGroupedProduct" stepKey="product"/> |
| 26 | + <createData entity="OneSimpleProductLink" stepKey="addProductOne"> |
| 27 | + <requiredEntity createDataKey="product"/> |
| 28 | + <requiredEntity createDataKey="simple1"/> |
| 29 | + </createData> |
| 30 | + <updateData entity="OneMoreSimpleProductLink" createDataKey="addProductOne" stepKey="addProductTwo"> |
| 31 | + <requiredEntity createDataKey="product"/> |
| 32 | + <requiredEntity createDataKey="simple2"/> |
| 33 | + </updateData> |
| 34 | + <updateData entity="OneMoreSimpleProductLink" createDataKey="addProductOne" stepKey="addProductThree"> |
| 35 | + <requiredEntity createDataKey="product"/> |
| 36 | + <requiredEntity createDataKey="simple3"/> |
| 37 | + </updateData> |
| 38 | + </before> |
| 39 | + <after> |
| 40 | + <deleteData createDataKey="product" stepKey="deleteGroupedProduct"/> |
| 41 | + <deleteData createDataKey="simple1" stepKey="deleteSimple1"/> |
| 42 | + <deleteData createDataKey="simple2" stepKey="deleteSimple2"/> |
| 43 | + <deleteData createDataKey="simple3" stepKey="deleteSimple3"/> |
| 44 | + </after> |
| 45 | + <actionGroup ref="StorefrontAddThreeGroupedProductToTheCartActionGroup" stepKey="enterSimpleProductsQty"> |
| 46 | + <argument name="urlKey" value="$$product.custom_attributes[url_key]$$" /> |
| 47 | + <argument name="product1" value="$simple1.name$"/> |
| 48 | + <argument name="product2" value="$simple2.name$"/> |
| 49 | + <argument name="product3" value="$simple3.name$"/> |
| 50 | + <argument name="qty1" value="0"/> |
| 51 | + <argument name="qty2" value="-10"/> |
| 52 | + <argument name="qty3" value="5"/> |
| 53 | + </actionGroup> |
| 54 | + <actionGroup ref="StorefrontValidateThreeGroupedProductQtyErrorMessageActionGroup" stepKey="verifyQtyInputErrorMessage"> |
| 55 | + <argument name="firstProductId" value="$simple1.id$"/> |
| 56 | + <argument name="secondProductId" value="$simple2.id$"/> |
| 57 | + <argument name="thirdProductId" value="$simple3.id$"/> |
| 58 | + </actionGroup> |
| 59 | + <actionGroup ref="StorefrontAddThreeGroupedProductToTheCartActionGroup" stepKey="enterSimpleProductsQty2"> |
| 60 | + <argument name="urlKey" value="$$product.custom_attributes[url_key]$$" /> |
| 61 | + <argument name="product1" value="$simple1.name$"/> |
| 62 | + <argument name="product2" value="$simple2.name$"/> |
| 63 | + <argument name="product3" value="$simple3.name$"/> |
| 64 | + <argument name="qty1" value="0"/> |
| 65 | + <argument name="qty2" value="0"/> |
| 66 | + <argument name="qty3" value="5"/> |
| 67 | + </actionGroup> |
| 68 | + <see userInput="You added $$product.name$$ to your shopping cart" stepKey="seeGroupedAddedToCart"/> |
| 69 | + </test> |
| 70 | +</tests> |
0 commit comments