|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="StorefrontVerifyMultipleInconsistentProductRatingsOnCategoryPageTest"> |
| 11 | + <test name="StorefrontVerifyMultipleProductRatingsOnCategoryPageTest"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="Review"/>
|
14 | 14 | <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"/> |
16 | 16 | <description value="Check if product rating is the same at list, table view on PLP and customers account."/>
|
17 | 17 | <severity value="AVERAGE"/>
|
18 | 18 | <useCaseId value="ACP2E-111"/>
|
19 | 19 | <testCaseId value="AC-1187"/>
|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 |
| - <!-- Enable singe store view to view ratings--> |
| 22 | + <!-- Enable singe store view to view ratings --> |
23 | 23 | <magentoCLI command="config:set general/single_store_mode/enabled 1" stepKey="enabledSingleStoreMode"/>
|
24 |
| - <!--Login--> |
| 24 | + <!-- Login --> |
25 | 25 | <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
|
26 |
| - <!--Create product and Category--> |
| 26 | + <!-- Create product and category --> |
27 | 27 | <createData entity="SimpleSubCategory" stepKey="category"/>
|
28 | 28 | <createData entity="SimpleProduct" stepKey="createProduct1">
|
29 | 29 | <requiredEntity createDataKey="category"/>
|
|
41 | 41 | <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer">
|
42 | 42 | <argument name="customerEmail" value="CustomerEntityOne.email"/>
|
43 | 43 | </actionGroup>
|
44 |
| - <!--delete Category and Products --> |
| 44 | + <!-- delete Category and Products --> |
45 | 45 | <deleteData createDataKey="createProduct1" stepKey="deleteProduct1"/>
|
46 | 46 | <deleteData createDataKey="createProduct2" stepKey="deleteProduct2"/>
|
47 | 47 | <deleteData createDataKey="category" stepKey="deleteCategory"/>
|
48 |
| - <!--Logout--> |
| 48 | + <!-- Logout --> |
49 | 49 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
50 |
| - <!-- Disable single store view back--> |
| 50 | + <!-- Disable single store view back --> |
51 | 51 | <magentoCLI command="config:set general/single_store_mode/enabled 0" stepKey="enabledSingleStoreMode"/>
|
52 | 52 | </after>
|
53 | 53 |
|
|
61 | 61 | </actionGroup>
|
62 | 62 | <!-- Click on reviews and add reviews with current user -->
|
63 | 63 | <click selector="{{StorefrontProductReviewsSection.reviewsTab}}" stepKey="openReviewTab1"/>
|
64 |
| - <!-- set product rating stars --> |
| 64 | + <!-- Set product rating stars --> |
65 | 65 | <actionGroup ref="StorefrontSetProductRatingStarsActionGroup" stepKey="setQualityStars1">
|
66 | 66 | <argument name="ratingName" value="Quality"/>
|
67 | 67 | <argument name="stars" value="3"/>
|
|
74 | 74 | <argument name="ratingName" value="Price"/>
|
75 | 75 | <argument name="stars" value="5"/>
|
76 | 76 | </actionGroup>
|
77 |
| - <!-- Click on reviews and add reviews with current user --> |
| 77 | + <!-- Click on reviews and add reviews with current user --> |
78 | 78 | <actionGroup ref="StorefrontAddProductReviewActionGroup" stepKey="addReview1"/>
|
79 | 79 | <!-- Go to second product view page -->
|
80 | 80 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openStorefrontProductPage2">
|
|
103 | 103 | <!--Start Checking reviews -->
|
104 | 104 | <!-- Navigate to PLP and check product rating for list and table views -->
|
105 | 105 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStoreViewHomePage"/>
|
106 |
| - <!-- Open Products in Category section --> |
| 106 | + <!-- Open products in category section --> |
107 | 107 | <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="goToStorefrontCategoryPage">
|
108 | 108 | <argument name="categoryName" value="$$category.name$$" />
|
109 | 109 | </actionGroup>
|
110 |
| - <!-- Grid Mode is default --> |
| 110 | + <!-- Grid mode is default --> |
111 | 111 | <!-- Check stars at grid view for first product -->
|
112 | 112 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductStarsAtGridView"/>
|
113 | 113 | <assertEquals stepKey="checkFirstProductStarsAtGridView">
|
114 | 114 | <actualResult type="string">$getFirstProductStarsAtGridView</actualResult>
|
115 | 115 | <expectedResult type="string">width: 80%;</expectedResult>
|
116 | 116 | </assertEquals>
|
117 |
| - <!-- Check stars at grid view for Second product --> |
| 117 | + <!-- Check stars at grid view for second product --> |
118 | 118 | <grabAttributeFrom selector="#rating-result_$$createProduct2.id$$ span" userInput="style" stepKey="getSecondProductStarsAtGridView"/>
|
119 | 119 | <assertEquals stepKey="checkSecondProductStarsAtGridView">
|
120 | 120 | <actualResult type="string">$getSecondProductStarsAtGridView</actualResult>
|
121 | 121 | <expectedResult type="string">width: 20%;</expectedResult>
|
122 | 122 | </assertEquals>
|
123 |
| - <!-- Switch category view to List mode --> |
| 123 | + <!-- Switch category view to list mode --> |
124 | 124 | <actionGroup ref="StorefrontSwitchCategoryViewToListModeActionGroup" stepKey="switchCategoryViewToListMode"/>
|
125 |
| - <!-- Check stars at list view for first product--> |
| 125 | + <!-- Check stars at list view for first product --> |
126 | 126 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductStarsAtListView"/>
|
127 | 127 | <assertEquals stepKey="checkFirstProductStarsAtListView">
|
128 | 128 | <actualResult type="string">$getFirstProductStarsAtListView</actualResult>
|
|
133 | 133 | <actualResult type="string">$getSecondProductStarsAtListView</actualResult>
|
134 | 134 | <expectedResult type="string">width: 20%;</expectedResult>
|
135 | 135 | </assertEquals>
|
136 |
| - <!-- Navigate to user account and check product ratings--> |
| 136 | + <!-- Navigate to user account and check product ratings --> |
137 | 137 | <amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage"/>
|
138 | 138 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductResultStarsUnderProductName"/>
|
139 | 139 | <assertEquals stepKey="checkFirstProductResultStarsUnderProductName">
|
|
146 | 146 | <actualResult type="string">$getSecondProductResultStarsUnderProductName</actualResult>
|
147 | 147 | <expectedResult type="string">width: 20%;</expectedResult>
|
148 | 148 | </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 --> |
151 | 151 | <amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage2"/>
|
152 |
| - <!--Click on Second Product review --> |
| 152 | + <!-- Click on second product review --> |
153 | 153 | <click selector="{{StorefrontMyProductReviewsSection.reviewFirstRowSeeDetails}}" stepKey="clickFirstReviewRow"/>
|
154 | 154 | <grabAttributeFrom selector="#rating-result_$$createProduct2.id$$ span" userInput="style" stepKey="getSecondProductResultStarsUnderProductName1"/>
|
155 | 155 | <assertEquals stepKey="checkSecondProductResultStarsUnderProductName1">
|
156 | 156 | <actualResult type="string">$getSecondProductResultStarsUnderProductName1</actualResult>
|
157 | 157 | <expectedResult type="string">width: 20%;</expectedResult>
|
158 | 158 | </assertEquals>
|
159 |
| - <!-- Navigate to user account and check product ratings--> |
| 159 | + <!-- Navigate to user account and check product ratings --> |
160 | 160 | <amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage3"/>
|
161 |
| - <!--Click on first product review --> |
| 161 | + <!-- Click on first product review --> |
162 | 162 | <click selector="{{StorefrontMyProductReviewsSection.reviewSecondRowSeeDetails}}" stepKey="clickSecondReviewRow"/>
|
163 | 163 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductResultStarsUnderProductName2"/>
|
164 | 164 | <assertEquals stepKey="checkFirstProductResultStarsUnderProductName2">
|
|
0 commit comments