Skip to content

Commit 79096af

Browse files
committed
ACP2E-111: Inconsistent product rating on category page
1 parent 9f2b074 commit 79096af

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="StorefrontVerifyMultipleInconsistentProductRatingsOnCategoryPageTest">
11+
<test name="StorefrontVerifyMultipleProductRatingsOnCategoryPageTest">
1212
<annotations>
1313
<features value="Review"/>
1414
<stories value="Review By Customers"/>
15-
<title value="StoreFront Inconsistent product rating on category page"/>
15+
<title value="StoreFront inconsistent products rating on category page"/>
1616
<description value="Check if product rating is the same at list, table view on PLP and customers account."/>
1717
<severity value="AVERAGE"/>
1818
<useCaseId value="ACP2E-111"/>
1919
<testCaseId value="AC-1187"/>
2020
</annotations>
2121
<before>
22-
<!-- Enable singe store view to view ratings-->
22+
<!-- Enable singe store view to view ratings -->
2323
<magentoCLI command="config:set general/single_store_mode/enabled 1" stepKey="enabledSingleStoreMode"/>
24-
<!--Login-->
24+
<!-- Login -->
2525
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
26-
<!--Create product and Category-->
26+
<!-- Create product and category -->
2727
<createData entity="SimpleSubCategory" stepKey="category"/>
2828
<createData entity="SimpleProduct" stepKey="createProduct1">
2929
<requiredEntity createDataKey="category"/>
@@ -41,13 +41,13 @@
4141
<actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer">
4242
<argument name="customerEmail" value="CustomerEntityOne.email"/>
4343
</actionGroup>
44-
<!--delete Category and Products -->
44+
<!-- delete Category and Products -->
4545
<deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
4646
<deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>
4747
<deleteData createDataKey="category" stepKey="deleteCategory"/>
48-
<!--Logout-->
48+
<!-- Logout -->
4949
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
50-
<!-- Disable single store view back-->
50+
<!-- Disable single store view back -->
5151
<magentoCLI command="config:set general/single_store_mode/enabled 0" stepKey="enabledSingleStoreMode"/>
5252
</after>
5353

@@ -61,7 +61,7 @@
6161
</actionGroup>
6262
<!-- Click on reviews and add reviews with current user -->
6363
<click selector="{{StorefrontProductReviewsSection.reviewsTab}}" stepKey="openReviewTab1"/>
64-
<!-- set product rating stars -->
64+
<!-- Set product rating stars -->
6565
<actionGroup ref="StorefrontSetProductRatingStarsActionGroup" stepKey="setQualityStars1">
6666
<argument name="ratingName" value="Quality"/>
6767
<argument name="stars" value="3"/>
@@ -74,7 +74,7 @@
7474
<argument name="ratingName" value="Price"/>
7575
<argument name="stars" value="5"/>
7676
</actionGroup>
77-
<!-- Click on reviews and add reviews with current user -->
77+
<!-- Click on reviews and add reviews with current user -->
7878
<actionGroup ref="StorefrontAddProductReviewActionGroup" stepKey="addReview1"/>
7979
<!-- Go to second product view page -->
8080
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openStorefrontProductPage2">
@@ -103,26 +103,26 @@
103103
<!--Start Checking reviews -->
104104
<!-- Navigate to PLP and check product rating for list and table views -->
105105
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStoreViewHomePage"/>
106-
<!-- Open Products in Category section -->
106+
<!-- Open products in category section -->
107107
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="goToStorefrontCategoryPage">
108108
<argument name="categoryName" value="$$category.name$$" />
109109
</actionGroup>
110-
<!-- Grid Mode is default -->
110+
<!-- Grid mode is default -->
111111
<!-- Check stars at grid view for first product -->
112112
<grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductStarsAtGridView"/>
113113
<assertEquals stepKey="checkFirstProductStarsAtGridView">
114114
<actualResult type="string">$getFirstProductStarsAtGridView</actualResult>
115115
<expectedResult type="string">width: 80%;</expectedResult>
116116
</assertEquals>
117-
<!-- Check stars at grid view for Second product -->
117+
<!-- Check stars at grid view for second product -->
118118
<grabAttributeFrom selector="#rating-result_$$createProduct2.id$$ span" userInput="style" stepKey="getSecondProductStarsAtGridView"/>
119119
<assertEquals stepKey="checkSecondProductStarsAtGridView">
120120
<actualResult type="string">$getSecondProductStarsAtGridView</actualResult>
121121
<expectedResult type="string">width: 20%;</expectedResult>
122122
</assertEquals>
123-
<!-- Switch category view to List mode -->
123+
<!-- Switch category view to list mode -->
124124
<actionGroup ref="StorefrontSwitchCategoryViewToListModeActionGroup" stepKey="switchCategoryViewToListMode"/>
125-
<!-- Check stars at list view for first product-->
125+
<!-- Check stars at list view for first product -->
126126
<grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductStarsAtListView"/>
127127
<assertEquals stepKey="checkFirstProductStarsAtListView">
128128
<actualResult type="string">$getFirstProductStarsAtListView</actualResult>
@@ -133,7 +133,7 @@
133133
<actualResult type="string">$getSecondProductStarsAtListView</actualResult>
134134
<expectedResult type="string">width: 20%;</expectedResult>
135135
</assertEquals>
136-
<!-- Navigate to user account and check product ratings-->
136+
<!-- Navigate to user account and check product ratings -->
137137
<amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage"/>
138138
<grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductResultStarsUnderProductName"/>
139139
<assertEquals stepKey="checkFirstProductResultStarsUnderProductName">
@@ -146,19 +146,19 @@
146146
<actualResult type="string">$getSecondProductResultStarsUnderProductName</actualResult>
147147
<expectedResult type="string">width: 20%;</expectedResult>
148148
</assertEquals>
149-
<!--Click on See Details button of two reviews -->
150-
<!-- Navigate to user account and check product ratings-->
149+
<!-- Click on see details button of two reviews -->
150+
<!-- Navigate to user account and check product ratings -->
151151
<amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage2"/>
152-
<!--Click on Second Product review -->
152+
<!-- Click on second product review -->
153153
<click selector="{{StorefrontMyProductReviewsSection.reviewFirstRowSeeDetails}}" stepKey="clickFirstReviewRow"/>
154154
<grabAttributeFrom selector="#rating-result_$$createProduct2.id$$ span" userInput="style" stepKey="getSecondProductResultStarsUnderProductName1"/>
155155
<assertEquals stepKey="checkSecondProductResultStarsUnderProductName1">
156156
<actualResult type="string">$getSecondProductResultStarsUnderProductName1</actualResult>
157157
<expectedResult type="string">width: 20%;</expectedResult>
158158
</assertEquals>
159-
<!-- Navigate to user account and check product ratings-->
159+
<!-- Navigate to user account and check product ratings -->
160160
<amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage3"/>
161-
<!--Click on first product review -->
161+
<!-- Click on first product review -->
162162
<click selector="{{StorefrontMyProductReviewsSection.reviewSecondRowSeeDetails}}" stepKey="clickSecondReviewRow"/>
163163
<grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductResultStarsUnderProductName2"/>
164164
<assertEquals stepKey="checkFirstProductResultStarsUnderProductName2">

0 commit comments

Comments
 (0)