File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed
view/frontend/templates/customer Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 126
126
<actualResult type =" string" >$getProductPriceStarsAtUserAccount</actualResult >
127
127
<expectedResult type =" string" >width: 100%;</expectedResult >
128
128
</assertEquals >
129
+
130
+ <!-- Navigate to customer/account/ and check My Recent Reviews-->
131
+ <amOnPage url =" customer/account/" stepKey =" amOnCustomerDashboardMyRecentReview" />
132
+ <waitForPageLoad stepKey =" waitForSchedulePageLoad" time =" 120" />
133
+ <grabAttributeFrom selector =" div.rating-result>span.rating_$$createProduct1.id$$ span" userInput =" style" stepKey =" getProductStarsAtListView2" />
134
+ <assertEquals stepKey =" checkProductStarsAtCustomerDashboard" >
135
+ <actualResult type =" string" >$getProductStarsAtListView2</actualResult >
136
+ <expectedResult type =" string" >width: 80%;</expectedResult >
137
+ </assertEquals >
129
138
</test >
130
139
</tests >
Original file line number Diff line number Diff line change 30
30
<?php if ($ _review ->getSum ()): ?>
31
31
<?php $ rating = $ _review ->getSum () / $ _review ->getCount () ?>
32
32
<div class="rating-summary">
33
- <span class="label"><span><?= $ block ->escapeHtml (__ ('Rating ' )) ?> :</span></span>
34
- <div class="rating-result"
35
- id="rating-result_<?= /* @noEscape */ $ block ->escapeHtml ($ _review ->getId ()) ?> "
36
- title="<?= $ block ->escapeHtmlAttr ($ rating ) ?> %">
37
- <span>
38
- <span><?= $ block ->escapeHtml ($ rating ) ?> %</span>
33
+ <span class="label"><span><?= $ escaper ->escapeHtml (__ ('Rating ' )) ?> :</span></span>
34
+ <div class="rating-result" title="<?= $ escaper ->escapeHtmlAttr ($ rating ) ?> %">
35
+ <span class="rating_<?= $ escaper ->escapeUrl ($ _review ->getReviewId ())?> ">
36
+ <span><?= $ escaper ->escapeHtml ($ rating ) ?> %</span>
39
37
</span>
40
38
</div>
41
- <?= /* @noEscape */
42
- $ secureRenderer ->renderStyleAsTag (
43
- "width: " . $ block ->escapeHtmlAttr ($ rating ) . "% " ,
44
- '#rating-result_ ' . $ block ->escapeHtml ($ _review ->getId ()) . ' span '
39
+ <?= /* @noEscape */ $ secureRenderer ->renderStyleAsTag (
40
+ "width: " . $ escaper ->escapeHtmlAttr ($ rating ) . "% " ,
41
+ 'div.rating-result>span.rating_ ' . $ escaper ->escapeUrl ($ _review ->getReviewId ())
45
42
) ?>
46
43
</div>
47
44
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments