|
| 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="StoreFrontCheckNotificationMessageContainerTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Message container"/> |
| 14 | + <stories value="Message container selector"/> |
| 15 | + <title value="Check notification message container"/> |
| 16 | + <description value="Check aria-atomic property on notification container message"/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <testCaseId value="MC-37339"/> |
| 19 | + <group value="Theme"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="SimpleProduct2" stepKey="simpleProduct"/> |
| 23 | + <createData entity="SalesRuleSpecificCouponAndByPercent" stepKey="createSalesRule"/> |
| 24 | + <createData entity="SimpleSalesRuleCoupon" stepKey="createCouponForCartPriceRule"> |
| 25 | + <requiredEntity createDataKey="createSalesRule"/> |
| 26 | + </createData> |
| 27 | + </before> |
| 28 | + <after> |
| 29 | + <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> |
| 30 | + <deleteData createDataKey="createSalesRule" stepKey="deleteSalesRule"/> |
| 31 | + </after> |
| 32 | + |
| 33 | + <actionGroup ref="AssertProductNameAndSkuInStorefrontProductPageByCustomAttributeUrlKeyActionGroup" stepKey="openProductPageAndVerifyProduct"> |
| 34 | + <argument name="product" value="$$simpleProduct$$"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="StorefrontAddProductToCartWithQtyActionGroup" stepKey="addProductToTheCart"> |
| 37 | + <argument name="productQty" value="1"/> |
| 38 | + </actionGroup> |
| 39 | + |
| 40 | + <waitForElementVisible selector="{{StorefrontProductPageSection.alertMessage}}[aria-atomic=true]" stepKey="checkAddedToCartMessage"/> |
| 41 | + |
| 42 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> |
| 43 | + <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"> |
| 44 | + <argument name="shippingMethod" value="Flat Rate"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="StorefrontApplyDiscountCodeActionGroup" stepKey="applyCoupon"> |
| 47 | + <argument name="discountCode" value="$createCouponForCartPriceRule.code$"/> |
| 48 | + </actionGroup> |
| 49 | + |
| 50 | + <waitForElementVisible selector="{{DiscountSection.DiscountVerificationMsgWithAriaAtomicProperty}}" stepKey="checkCouponCodeApply"/> |
| 51 | + </test> |
| 52 | +</tests> |
0 commit comments