|
25 | 25 | <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
|
26 | 26 | <!--Create product and Category-->
|
27 | 27 | <createData entity="SimpleSubCategory" stepKey="category"/>
|
28 |
| - <createData stepKey="createProduct1" entity="SimpleProduct"> |
| 28 | + <createData entity="SimpleProduct" stepKey="createProduct1"> |
29 | 29 | <requiredEntity createDataKey="category"/>
|
30 | 30 | </createData>
|
31 |
| - <createData stepKey="createProduct2" entity="SimpleProduct"> |
| 31 | + <createData entity="SimpleProduct" stepKey="createProduct2"> |
32 | 32 | <requiredEntity createDataKey="category"/>
|
33 | 33 | </createData>
|
34 | 34 | </before>
|
|
76 | 76 | </actionGroup>
|
77 | 77 | <!-- Click on reviews and add reviews with current user -->
|
78 | 78 | <actionGroup ref="StorefrontAddProductReviewActionGroup" stepKey="addReview1"/>
|
79 |
| - |
80 | 79 | <!-- Go to second product view page -->
|
81 | 80 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openStorefrontProductPage2">
|
82 | 81 | <argument name="productUrl" value="$$createProduct2.custom_attributes[url_key]$$"/>
|
|
98 | 97 | </actionGroup>
|
99 | 98 | <!-- Add review -->
|
100 | 99 | <actionGroup ref="StorefrontAddProductReviewActionGroup" stepKey="addReview2"/>
|
101 |
| - |
102 | 100 | <!-- Approve all reviews -->
|
103 | 101 | <actionGroup ref="AdminOpenPendingReviewsPageActionGroup" stepKey="openPendingReviewsPage"/>
|
104 | 102 | <actionGroup ref="AdminApproveAllReviewsActionGroup" stepKey="approveAllCustomerReview"/>
|
105 |
| - |
106 | 103 | <!--Start Checking reviews -->
|
107 | 104 | <!-- Navigate to PLP and check product rating for list and table views -->
|
108 | 105 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="amOnStoreViewHomePage"/>
|
109 | 106 | <!-- Open Products in Category section -->
|
110 | 107 | <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="goToStorefrontCategoryPage">
|
111 | 108 | <argument name="categoryName" value="$$category.name$$" />
|
112 | 109 | </actionGroup>
|
113 |
| - |
114 | 110 | <!-- Grid Mode is default -->
|
115 | 111 | <!-- Check stars at grid view for first product -->
|
116 | 112 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductStarsAtGridView"/>
|
|
124 | 120 | <actualResult type="string">$getSecondProductStarsAtGridView</actualResult>
|
125 | 121 | <expectedResult type="string">width: 20%;</expectedResult>
|
126 | 122 | </assertEquals>
|
127 |
| - |
128 | 123 | <!-- Switch category view to List mode -->
|
129 | 124 | <actionGroup ref="StorefrontSwitchCategoryViewToListModeActionGroup" stepKey="switchCategoryViewToListMode"/>
|
130 | 125 | <!-- Check stars at list view for first product-->
|
|
138 | 133 | <actualResult type="string">$getSecondProductStarsAtListView</actualResult>
|
139 | 134 | <expectedResult type="string">width: 20%;</expectedResult>
|
140 | 135 | </assertEquals>
|
141 |
| - |
142 | 136 | <!-- Navigate to user account and check product ratings-->
|
143 | 137 | <amOnPage url="review/customer/" stepKey="amOnCustomerReviewPage"/>
|
144 | 138 | <grabAttributeFrom selector="#rating-result_$$createProduct1.id$$ span" userInput="style" stepKey="getFirstProductResultStarsUnderProductName"/>
|
145 | 139 | <assertEquals stepKey="checkFirstProductResultStarsUnderProductName">
|
146 | 140 | <actualResult type="string">$getFirstProductResultStarsUnderProductName</actualResult>
|
147 | 141 | <expectedResult type="string">width: 80%;</expectedResult>
|
148 | 142 | </assertEquals>
|
149 |
| - |
150 | 143 | <click selector=".action.more" stepKey="amOnProductReviewDetailsPage"/>
|
151 | 144 | <!-- Check stars at rating result under the product name -->
|
152 | 145 | <grabAttributeFrom selector="#rating-result_$$createProduct2.id$$ span" userInput="style" stepKey="getSecondProductResultStarsUnderProductName"/>
|
|
0 commit comments