-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-9277: [MFTF] Refactoring StorefrontVerifyOrderHistoryCommentsT…
…est #33667
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
app/code/Magento/Sales/Test/Mftf/Test/StorefrontOrderCommentWithHTMLTagsDisplayTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontVerifyOrderHistoryCommentsWithHTMLTagsTest"> | ||
<annotations> | ||
<features value="Sales"/> | ||
<stories value="Storefront Customer Order History Comments"/> | ||
<title value="Verify Customer Order History Comments On Storefront"/> | ||
<description value="Verify that comment with HTML tag is displayed properly on the Order View Page on Storefront"/> | ||
<testCaseId value="MC-42694"/> | ||
<useCaseId value="MC-42531"/> | ||
<severity value="MINOR"/> | ||
<group value="Sales"/> | ||
</annotations> | ||
<before> | ||
<createData entity="Simple_US_Customer" stepKey="createCustomer"/> | ||
<createData entity="SimpleProduct2" stepKey="createProduct"/> | ||
<createData entity="CustomerCart" stepKey="createCustomerCart"> | ||
<requiredEntity createDataKey="createCustomer"/> | ||
</createData> | ||
<createData entity="CustomerCartItem" stepKey="addCartItem"> | ||
<requiredEntity createDataKey="createCustomerCart"/> | ||
<requiredEntity createDataKey="createProduct"/> | ||
</createData> | ||
<createData entity="CustomerAddressInformation" stepKey="addCustomerOrderAddress"> | ||
<requiredEntity createDataKey="createCustomerCart"/> | ||
</createData> | ||
<updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="submitOrder"> | ||
<requiredEntity createDataKey="createCustomerCart"/> | ||
</updateData> | ||
</before> | ||
<after> | ||
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> | ||
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/> | ||
</after> | ||
|
||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
|
||
<actionGroup ref="AdminOpenOrderViewPageByOrderIdActionGroup" stepKey="openOrder"> | ||
<argument name="orderId" value="$createCustomerCart.return$"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AdminSalesOrderCommentsActionGroup" stepKey="fillAndSaveOrderComments"> | ||
<argument name="comment" value="{{SalesOrderComments.commentWithHyperlink}}" /> | ||
</actionGroup> | ||
|
||
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefront"> | ||
<argument name="Customer" value="$$createCustomer$$"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/> | ||
|
||
<dontSee userInput="{{anchorTagFragment.anchorTag}}" selector="{{StorefrontCustomerOrderViewSection.orderComment}}" stepKey="dontSeeExposedHtmlCode"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters