Skip to content

Commit 09e3444

Browse files
committed
MC-42531: HTML Tags are displaying on customer's order comment section on frontend
- Updated the MFTF test correction based on PR.
1 parent 0266008 commit 09e3444

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminSalesOrderCommentsActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<description>Adding comments on admin sales order details page</description>
1414
</annotations>
1515
<arguments>
16-
<argument name="comment" type="string"/>
16+
<argument name="comment" type="string" defaultValue=""/>
1717
</arguments>
1818
<fillField selector="{{AdminSalesOrderCommentsSection.historyComment}}" userInput="{{comment}}" stepKey="fillComment"/>
1919
<checkOption selector="{{AdminSalesOrderCommentsSection.historyVisible}}" stepKey="checkVisibleOnStoreFront"/>

app/code/Magento/Sales/Test/Mftf/Data/OrderCommentsData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<entity name="SalesOrderComments" type="order">
1212
<data key="commentWithHyperlink">&#x3C;a href=&#x22;https://business.adobe.com/products/magento/magento-commerce.html&#x22;&#x3E;Testing Html Tags&#x3C;/a&#x3E;</data>
1313
</entity>
14-
<entity name="assertCommentsWithHtmlTags" type="string">
14+
<entity name="anchorTagFragment" type="string">
1515
<data key="anchorTag">a href</data>
1616
</entity>
1717
</entities>

app/code/Magento/Sales/Test/Mftf/Test/StorefrontVerifyOrderHistoryCommentsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="navigateToCustomerDashboardPage"/>
7070
<actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/>
7171

72-
<dontSee userInput="{{assertCommentsWithHtmlTags.anchorTag}}" selector="{{StorefrontCustomerOrderViewSection.orderComment}}" stepKey="dontSeeExposedHtmlCode"/>
72+
<dontSee userInput="{{anchorTagFragment.anchorTag}}" selector="{{StorefrontCustomerOrderViewSection.orderComment}}" stepKey="dontSeeExposedHtmlCode"/>
7373
</test>
7474
</tests>

0 commit comments

Comments
 (0)