|
| 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="StorefrontVerifyOrderHistoryCommentsWithHTMLTagsTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Sales"/> |
| 14 | + <stories value="Storefront Customer Order History Comments"/> |
| 15 | + <title value="Verify Customer Order History Comments On Storefront"/> |
| 16 | + <description value="Verify that comment with HTML tag is displayed properly on the Order View Page on Storefront"/> |
| 17 | + <testCaseId value="MC-42694"/> |
| 18 | + <useCaseId value="MC-42531"/> |
| 19 | + <severity value="MINOR"/> |
| 20 | + <group value="Sales"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
| 24 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 25 | + <createData entity="CustomerCart" stepKey="createCustomerCart"> |
| 26 | + <requiredEntity createDataKey="createCustomer"/> |
| 27 | + </createData> |
| 28 | + <createData entity="CustomerCartItem" stepKey="addCartItem"> |
| 29 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 30 | + <requiredEntity createDataKey="createProduct"/> |
| 31 | + </createData> |
| 32 | + <createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress"> |
| 33 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 34 | + </createData> |
| 35 | + <updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="submitOrder"> |
| 36 | + <requiredEntity createDataKey="createCustomerCart"/> |
| 37 | + </updateData> |
| 38 | + </before> |
| 39 | + <after> |
| 40 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
| 41 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 42 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 43 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 44 | + </after> |
| 45 | + |
| 46 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 47 | + |
| 48 | + <actionGroup ref="AdminOpenOrderViewPageByOrderIdActionGroup" stepKey="openOrder"> |
| 49 | + <argument name="orderId" value="$createCustomerCart.return$"/> |
| 50 | + </actionGroup> |
| 51 | + |
| 52 | + <actionGroup ref="AdminSalesOrderCommentsActionGroup" stepKey="fillAndSaveOrderComments"> |
| 53 | + <argument name="comment" value="{{SalesOrderComments.commentWithHyperlink}}" /> |
| 54 | + </actionGroup> |
| 55 | + |
| 56 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefront"> |
| 57 | + <argument name="Customer" value="$$createCustomer$$"/> |
| 58 | + </actionGroup> |
| 59 | + |
| 60 | + <actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/> |
| 61 | + |
| 62 | + <dontSee userInput="{{anchorTagFragment.anchorTag}}" selector="{{StorefrontCustomerOrderViewSection.orderComment}}" stepKey="dontSeeExposedHtmlCode"/> |
| 63 | + </test> |
| 64 | +</tests> |
0 commit comments