File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
Customer/Test/Mftf/Section Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 20
20
<element name =" pager" type =" block" selector =" .pager" />
21
21
<element name =" createdDate" type =" text" selector =" .block-order-details-comments .comment-date" />
22
22
<element name =" orderPlacedBy" type =" text" selector =" .block-order-details-comments .comment-content" />
23
+ <element name =" orderComment" type =" text" selector =" .block-order-details-comments .comment-content" />
23
24
<element name =" productName" type =" text" selector =" //td[@data-th='Product Name']" />
24
25
<element name =" productRows" type =" text" selector =" #my-orders-table tbody tr" />
25
26
<element name =" productNameByRow" type =" text" parameterized =" true" selector =" #my-orders-table tbody:nth-of-type({{index}}) td.name" />
Original file line number Diff line number Diff line change 12
12
<annotations >
13
13
<description >Adding comments on admin sales order details page</description >
14
14
</annotations >
15
- <fillField selector =" {{AdminSalesOrderCommentsSection.historyComment}}" userInput =" {{SalesOrderComments.comment}}" stepKey =" fillComment" />
15
+ <arguments >
16
+ <argument name =" comment" type =" string" />
17
+ </arguments >
18
+ <fillField selector =" {{AdminSalesOrderCommentsSection.historyComment}}" userInput =" {{comment}}" stepKey =" fillComment" />
16
19
<checkOption selector =" {{AdminSalesOrderCommentsSection.historyVisible}}" stepKey =" checkVisibleOnStoreFront" />
17
20
<click selector =" {{AdminSalesOrderCommentsSection.submitOrderComment}}" stepKey =" clickSaveCommentButton" />
18
21
<waitForPageLoad stepKey =" waitForSaveComments" />
Original file line number Diff line number Diff line change 9
9
<entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
11
<entity name =" SalesOrderComments" type =" order" >
12
- <data key =" comment" >< a href=" https://business.adobe.com/products/magento/magento-commerce.html"> Testing Html Tags< /a> </data >
12
+ <data key =" commentWithHyperlink" >< a href=" https://business.adobe.com/products/magento/magento-commerce.html"> Testing Html Tags< /a> </data >
13
+ </entity >
14
+ <entity name =" assertCommentsWithHtmlTags" type =" string" >
15
+ <data key =" anchorTag" >a href</data >
13
16
</entity >
14
17
</entities >
Original file line number Diff line number Diff line change 62
62
<argument name =" orderId" value =" {$orderNumber}" />
63
63
</actionGroup >
64
64
65
- <actionGroup ref =" AdminSalesOrderCommentsActionGroup" stepKey =" fillAndSaveOrderComments" />
65
+ <actionGroup ref =" AdminSalesOrderCommentsActionGroup" stepKey =" fillAndSaveOrderComments" >
66
+ <argument name =" comment" value =" {{SalesOrderComments.commentWithHyperlink}}" />
67
+ </actionGroup >
66
68
67
69
<actionGroup ref =" StorefrontOpenMyAccountPageActionGroup" stepKey =" navigateToCustomerDashboardPage" />
68
70
<actionGroup ref =" StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey =" clickViewOrder" />
71
+
72
+ <dontSee userInput =" {{assertCommentsWithHtmlTags.anchorTag}}" selector =" {{StorefrontCustomerOrderViewSection.orderComment}}" stepKey =" dontSeeExposedHtmlCode" />
69
73
</test >
70
74
</tests >
You can’t perform that action at this time.
0 commit comments