|
16 | 16 | <severity value="CRITICAL"/>
|
17 | 17 | <testCaseId value="MAGETWO-77831"/>
|
18 | 18 | <group value="product"/>
|
19 |
| - <group value="skip"/><!-- MAGETWO-91215 --> |
20 | 19 | </annotations>
|
21 | 20 |
|
22 | 21 | <before>
|
|
68 | 67 | <!-- Open Product Grid, Filter product and open -->
|
69 | 68 |
|
70 | 69 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/>
|
71 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad"/> |
| 70 | + <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
72 | 71 |
|
73 | 72 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="filterGroupedProductOptions">
|
74 | 73 | <argument name="product" value="_defaultProduct"/>
|
75 | 74 | </actionGroup>
|
76 | 75 | <click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit"/>
|
77 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
| 76 | + <waitForPageLoad time="30" stepKey="waitForPageLoad2"/> |
78 | 77 |
|
79 | 78 | <!-- Update Product with Option Value DropDown 1-->
|
80 | 79 |
|
81 | 80 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses2"/>
|
82 | 81 | <click selector="{{AdminProductCustomizableOptionsSection.addOptionBtn}}" stepKey="checkAddOption1"/>
|
83 |
| - <waitForPageLoad time="10" stepKey="waitForPageLoad7"/> |
| 82 | + <waitForPageLoad time="10" stepKey="waitForPageLoad3"/> |
84 | 83 | <fillField selector="{{AdminProductCustomizableOptionsSection.fillOptionTitle('New Option')}}" userInput="Custom Options 1" stepKey="fillOptionTitle1"/>
|
85 | 84 | <click selector="{{AdminProductCustomizableOptionsSection.checkSelect('Custom Options 1')}}" stepKey="clickSelect1"/>
|
86 | 85 | <click selector="{{AdminProductCustomizableOptionsSection.checkDropDown('Custom Options 1')}}" stepKey="clickDropDown1"/>
|
|
98 | 97 |
|
99 | 98 | <!-- Switcher to Store FR-->
|
100 | 99 |
|
| 100 | + <scrollToTopOfPage stepKey="scrollToTopOfPage1"/> |
| 101 | + |
101 | 102 | <click selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="clickStoreSwitcher"/>
|
102 | 103 | <click selector="{{AdminProductFormActionSection.selectStoreView(customStoreFR.name)}}" stepKey="clickStoreView"/>
|
103 | 104 | <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptMessage"/>
|
104 | 105 |
|
105 | 106 | <!-- Open tab Customizable Options -->
|
106 | 107 |
|
107 |
| - <waitForPageLoad time="10" stepKey="waitForPageLoad2"/> |
| 108 | + <waitForPageLoad time="10" stepKey="waitForPageLoad4"/> |
108 | 109 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses3"/>
|
109 | 110 |
|
110 | 111 | <!-- Update Option Customizable Options and Option Value 1-->
|
111 | 112 |
|
112 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad8"/> |
| 113 | + <waitForPageLoad time="30" stepKey="waitForPageLoad5"/> |
113 | 114 | <uncheckOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionTitle}}" stepKey="uncheckUseDefaultOptionTitle"/>
|
114 | 115 | <fillField selector="{{AdminProductCustomizableOptionsSection.fillOptionTitle('Custom Options 1')}}" userInput="FR Custom Options 1" stepKey="fillOptionTitle2"/>
|
115 | 116 | <uncheckOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionValueTitleByIndex('0')}}" stepKey="uncheckUseDefaultOptionValueTitle1"/>
|
|
125 | 126 | <!-- Login Customer Storefront -->
|
126 | 127 |
|
127 | 128 | <amOnPage url="{{StorefrontCustomerSignInPage.url}}" stepKey="amOnSignInPage"/>
|
| 129 | + <waitForPageLoad time="30" stepKey="waitForPageLoad6"/> |
128 | 130 | <fillField userInput="$$createCustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillEmail"/>
|
129 | 131 | <fillField userInput="$$createCustomer.password$$" selector="{{StorefrontCustomerSignInFormSection.passwordField}}" stepKey="fillPassword"/>
|
130 | 132 | <click selector="{{StorefrontCustomerSignInFormSection.signInAccountButton}}" stepKey="clickSignInAccountButton"/>
|
131 | 133 |
|
132 | 134 | <!-- Go to Product Page -->
|
133 | 135 |
|
134 | 136 | <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct1Page"/>
|
| 137 | + <waitForPageLoad time="30" stepKey="waitForPageLoad7"/> |
135 | 138 |
|
136 | 139 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey="seeProductOptionDropDownTitle"/>
|
137 | 140 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey="seeproductOptionDropDownOptionTitle1"/>
|
|
172 | 175 | <conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions1"/>
|
173 | 176 | <see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="option2" stepKey="seeProductOptionValueDropdown1Input2"/>
|
174 | 177 | <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
|
| 178 | + <waitForPageLoad time="30" stepKey="waitForPageLoad8"/> |
175 | 179 |
|
176 | 180 | <!-- Place Order -->
|
177 | 181 |
|
178 |
| - <waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButton"/> |
| 182 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder1"/> |
179 | 183 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
|
180 | 184 |
|
181 | 185 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
|
182 | 186 |
|
183 | 187 | <!-- Open Order -->
|
184 | 188 |
|
185 | 189 | <amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/>
|
186 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask3"/> |
| 190 | + <waitForPageLoad time="30" stepKey="waitForPageLoad9"/> |
187 | 191 | <fillField selector="{{OrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="fillOrderNum"/>
|
188 | 192 | <click selector="{{OrdersGridSection.submitSearch}}" stepKey="submitSearch"/>
|
189 | 193 | <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/>
|
190 | 194 | <click selector="{{OrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
|
| 195 | + <waitForPageLoad time="30" stepKey="waitForPageLoad10"/> |
191 | 196 |
|
192 | 197 | <!-- Checking the correctness of displayed custom options for user parameters on Order -->
|
193 | 198 |
|
|
197 | 202 | <!-- Switch to FR Store View Storefront -->
|
198 | 203 |
|
199 | 204 | <amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnProduct4Page"/>
|
| 205 | + <waitForPageLoad time="30" stepKey="waitForPageLoad11"/> |
200 | 206 | <click selector="{{StorefrontHeaderSection.storeViewSwitcher}}" stepKey="clickStoreViewSwitcher1"/>
|
201 | 207 | <waitForElementVisible selector="{{StorefrontHeaderSection.storeViewDropdown}}" stepKey="waitForStoreViewDropdown1"/>
|
202 | 208 | <click selector="{{StorefrontHeaderSection.storeViewOption(customStoreFR.code)}}" stepKey="selectStoreView1"/>
|
203 |
| - <waitForPageLoad stepKey="waitForPageLoad4"/> |
| 209 | + <waitForPageLoad stepKey="waitForPageLoad12"/> |
204 | 210 |
|
205 | 211 | <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page"/>
|
| 212 | + <waitForPageLoad time="30" stepKey="waitForPageLoad13"/> |
206 | 213 |
|
207 | 214 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('FR Custom Options 1')}}" stepKey="seeProductFrOptionDropDownTitle"/>
|
208 | 215 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('FR Custom Options 1', 'FR option1')}}" stepKey="productFrOptionDropDownOptionTitle1"/>
|
|
243 | 250 | <conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions3"/>
|
244 | 251 | <see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="FR option2" stepKey="seeProductFrOptionValueDropdown1Input3"/>
|
245 | 252 | <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext1"/>
|
| 253 | + <waitForPageLoad time="30" stepKey="waitForPageLoad14"/> |
246 | 254 |
|
247 | 255 | <!-- Place Order -->
|
248 | 256 |
|
249 |
| - <waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButton1"/> |
| 257 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder2"/> |
250 | 258 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder1"/>
|
251 | 259 |
|
252 | 260 | <!-- Open Product Grid, Filter product and open -->
|
253 | 261 |
|
254 | 262 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage1"/>
|
255 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad5"/> |
| 263 | + <waitForPageLoad time="30" stepKey="waitForPageLoad15"/> |
256 | 264 |
|
257 | 265 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="filterGroupedProductOptions1">
|
258 | 266 | <argument name="product" value="_defaultProduct"/>
|
259 | 267 | </actionGroup>
|
260 | 268 | <click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit1"/>
|
261 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad6"/> |
| 269 | + <waitForPageLoad time="30" stepKey="waitForPageLoad16"/> |
262 | 270 |
|
263 | 271 | <!-- Switcher to Store FR-->
|
264 |
| - |
| 272 | + <scrollToTopOfPage stepKey="scrollToTopOfPage2"/> |
265 | 273 | <click selector="{{AdminProductFormActionSection.changeStoreButton}}" stepKey="clickStoreSwitcher1"/>
|
266 | 274 | <click selector="{{AdminProductFormActionSection.selectStoreView(customStoreFR.name)}}" stepKey="clickStoreView1"/>
|
267 | 275 | <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptMessage1"/>
|
268 | 276 |
|
269 | 277 | <!-- Open tab Customizable Options -->
|
270 | 278 |
|
271 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad9"/> |
| 279 | + <waitForPageLoad time="30" stepKey="waitForPageLoad17"/> |
272 | 280 | <conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses4" />
|
273 | 281 |
|
274 | 282 | <!-- Update Option Customizable Options and Option Value 1-->
|
275 | 283 |
|
276 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad10"/> |
| 284 | + <waitForPageLoad time="30" stepKey="waitForPageLoad18"/> |
277 | 285 | <checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionTitle}}" stepKey="checkUseDefaultOptionTitle"/>
|
278 | 286 | <checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionValueTitleByIndex('0')}}" stepKey="checkUseDefaultOptionValueTitle1"/>
|
279 | 287 |
|
280 | 288 | <!-- Update Product with Option Value 1 DropDown 1-->
|
281 | 289 |
|
282 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad11"/> |
| 290 | + <waitForPageLoad time="30" stepKey="waitForPageLoad19"/> |
283 | 291 | <checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionValueTitleByIndex('1')}}" stepKey="checkUseDefaultOptionValueTitle2"/>
|
284 | 292 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton3"/>
|
285 | 293 |
|
286 | 294 | <!--Go to Product Page-->
|
287 | 295 |
|
288 | 296 | <amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page2"/>
|
| 297 | + <waitForPageLoad time="30" stepKey="waitForPageLoad20"/> |
289 | 298 |
|
290 | 299 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey="seeProductOptionDropDownTitle1"/>
|
291 | 300 | <seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey="seeProductOptionDropDownOptionTitle3"/>
|
|
0 commit comments