-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[MFTF] Refactoring StorefrontVerifyOrderHistoryCommentsTest #33667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
magento-devops-reposync-svc
merged 8 commits into
magento:2.4-develop
from
AnnaAPak:ref-StorefrontVerifyOrderHistoryCommentsTest
Feb 3, 2022
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e6ed808
refactored to decrease execution time
AnnaAPak 24c3210
Merge branch '2.4-develop' into ref-AdminCancelTheCreatedOrderWithCas…
AnnaAPak 778b802
Merge branch '2.4-develop' into ref-AdminCancelTheCreatedOrderWithChe…
AnnaAPak 4c8908f
refactored StorefrontVerifyOrderHistoryCommentsTest
AnnaAPak ed343c5
Merge branch '2.4-develop' into ref-StorefrontVerifyOrderHistoryComme…
4c6e9c8
Merge branch '2.4-develop' into ref-StorefrontVerifyOrderHistoryComme…
Den4ik 550115b
33667 Merged 2.4-develop and resolved conflicts
engcom-Charlie 00d9a6b
33667 Merged 2.4-develop and resolved conflicts
engcom-Charlie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think can move to action group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edenduong I checked - there are no more tests that use this assertion. Do you think we still need create a separate Action Group here?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnnaAPak It could be groundwork for the future :)