File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
app/code/Magento/Review/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 135
135
<expectedResult type =" string" >width: 20%;</expectedResult >
136
136
</assertEquals >
137
137
<!-- Navigate to user account and check product ratings -->
138
- <amOnPage url =" review/customer/" stepKey =" amOnCustomerReviewPage" />
139
- <grabAttributeFrom selector =" #rating-result_$$createProduct1.id$$ span" userInput =" style" stepKey =" getFirstProductResultStarsUnderProductName" />
140
- <assertEquals stepKey =" checkFirstProductResultStarsUnderProductName" >
141
- <actualResult type =" string" >$getFirstProductResultStarsUnderProductName</actualResult >
142
- <expectedResult type =" string" >width: 80%;</expectedResult >
143
- </assertEquals >
144
- <!-- Check stars at rating result under the product name -->
145
- <grabAttributeFrom selector =" #rating-result_$$createProduct2.id$$ span" userInput =" style" stepKey =" getSecondProductResultStarsUnderProductName" />
146
- <assertEquals stepKey =" checkSecondProductResultStarsUnderProductName" >
147
- <actualResult type =" string" >$getSecondProductResultStarsUnderProductName</actualResult >
148
- <expectedResult type =" string" >width: 20%;</expectedResult >
149
- </assertEquals >
138
+ <!-- Checking that all 3 reviews on the My Product Reviews page have one star ratings -->
139
+ <actionGroup ref =" StorefrontNavigateToMyProductReviewsPageActionGroup" stepKey =" navigateToProductReviewsPage" />
140
+ <seeElement selector =" {{StorefrontMyProductReviewsSection.reviewRating('2', '80%')}}" stepKey =" seeFirstOneStarReviewOnMyReviews" />
141
+ <seeElement selector =" {{StorefrontMyProductReviewsSection.reviewRating('1', '20%')}}" stepKey =" seeSecondOneStarReviewOnMyReviews" />
150
142
<!-- Click on see details button of two reviews -->
151
143
<!-- Navigate to user account and check product ratings -->
152
144
<amOnPage url =" review/customer/" stepKey =" amOnCustomerReviewPage2" />
You can’t perform that action at this time.
0 commit comments