|
| 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="StorefrontVerifyOrderHistoryCommentsTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Sales"/> |
| 14 | + <stories value="Storefront Order History Comments"/> |
| 15 | + <title value="Verify Order History Comments For Storefront My Account Sales Pages"/> |
| 16 | + <description value="Verify that the History comments without the HTML tags to the Sales my account pages on the Storefront"/> |
| 17 | + <testCaseId value="MC-42531"/> |
| 18 | + <useCaseId value="MC-42531"/> |
| 19 | + <severity value="MINOR"/> |
| 20 | + <group value="Sales"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <!-- Create customer --> |
| 24 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
| 25 | + <!-- Create product --> |
| 26 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 27 | + <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <!-- Customer log out --> |
| 31 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
| 32 | + <!-- Admin log out --> |
| 33 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 34 | + <!-- Delete customer --> |
| 35 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 36 | + <!-- Delete product --> |
| 37 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 38 | + </after> |
| 39 | + <!-- Login as customer --> |
| 40 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
| 41 | + <argument name="Customer" value="$$createCustomer$$"/> |
| 42 | + </actionGroup> |
| 43 | + <!-- Add product to cart --> |
| 44 | + <actionGroup ref="StorefrontAddSimpleProductWithQtyActionGroup" stepKey="addSimpleProductToCart"> |
| 45 | + <argument name="product" value="$$createProduct$$"/> |
| 46 | + <argument name="quantity" value="1"/> |
| 47 | + </actionGroup> |
| 48 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> |
| 49 | + <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRate"/> |
| 50 | + <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="goToReview"/> |
| 51 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/> |
| 52 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"> |
| 53 | + <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage"/> |
| 54 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage"/> |
| 55 | + </actionGroup> |
| 56 | + |
| 57 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="orderNumber"/> |
| 58 | + |
| 59 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 60 | + |
| 61 | + <actionGroup ref="OpenOrderByIdActionGroup" stepKey="addFilterToGridAndOpenOrder"> |
| 62 | + <argument name="orderId" value="{$orderNumber}"/> |
| 63 | + </actionGroup> |
| 64 | + |
| 65 | + <actionGroup ref="AdminSalesOrderCommentsActionGroup" stepKey="fillAndSaveOrderComments"/> |
| 66 | + |
| 67 | + <actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="navigateToCustomerDashboardPage"/> |
| 68 | + <actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/> |
| 69 | + </test> |
| 70 | +</tests> |
0 commit comments