6868 <!-- Open Product Grid, Filter product and open -->
6969
7070 <amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" amOnProductGridPage" />
71- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad " />
71+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad1 " />
7272
73- <actionGroup ref =" filterProductGridBySku " stepKey =" filterGroupedProductOptions" >
73+ <actionGroup ref =" SearchForProductOnBackendActionGroup " stepKey =" filterGroupedProductOptions" >
7474 <argument name =" product" value =" _defaultProduct" />
7575 </actionGroup >
76+
7677 <click selector =" {{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey =" openProductForEdit" />
77- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad1 " />
78+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad2 " />
7879
7980 <!-- Update Product with Option Value DropDown 1-->
80-
8181 <conditionalClick selector =" {{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector =" {{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible =" true" stepKey =" clickIfContentTabCloses2" />
8282 <click selector =" {{AdminProductCustomizableOptionsSection.addOptionBtn}}" stepKey =" checkAddOption1" />
83- <waitForPageLoad time =" 10" stepKey =" waitForPageLoad7 " />
83+ <waitForPageLoad time =" 10" stepKey =" waitForPageLoad3 " />
8484 <fillField selector =" {{AdminProductCustomizableOptionsSection.fillOptionTitle('New Option')}}" userInput =" Custom Options 1" stepKey =" fillOptionTitle1" />
8585 <click selector =" {{AdminProductCustomizableOptionsSection.checkSelect('Custom Options 1')}}" stepKey =" clickSelect1" />
8686 <click selector =" {{AdminProductCustomizableOptionsSection.checkDropDown('Custom Options 1')}}" stepKey =" clickDropDown1" />
9797 <click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" clickSaveButton1" />
9898
9999 <!-- Switcher to Store FR-->
100+ <scrollToTopOfPage stepKey =" scrollToTopOfPage1" />
100101
101102 <click selector =" {{AdminProductFormActionSection.changeStoreButton}}" stepKey =" clickStoreSwitcher" />
102103 <click selector =" {{AdminProductFormActionSection.selectStoreView(customStoreFR.name)}}" stepKey =" clickStoreView" />
103104 <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" acceptMessage" />
104105
105106 <!-- Open tab Customizable Options -->
106107
107- <waitForPageLoad time =" 10" stepKey =" waitForPageLoad2 " />
108+ <waitForPageLoad time =" 10" stepKey =" waitForPageLoad4 " />
108109 <conditionalClick selector =" {{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector =" {{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible =" true" stepKey =" clickIfContentTabCloses3" />
109110
110111 <!-- Update Option Customizable Options and Option Value 1-->
111112
112- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad8 " />
113+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad5 " />
113114 <uncheckOption selector =" {{AdminProductCustomizableOptionsSection.useDefaultOptionTitle}}" stepKey =" uncheckUseDefaultOptionTitle" />
114115 <fillField selector =" {{AdminProductCustomizableOptionsSection.fillOptionTitle('Custom Options 1')}}" userInput =" FR Custom Options 1" stepKey =" fillOptionTitle2" />
115116 <uncheckOption selector =" {{AdminProductCustomizableOptionsSection.useDefaultOptionTitleByIndex('0')}}" stepKey =" uncheckUseDefaultOptionValueTitle1" />
125126 <!-- Login Customer Storefront -->
126127
127128 <amOnPage url =" {{StorefrontCustomerSignInPage.url}}" stepKey =" amOnSignInPage" />
128- <waitForPageLoad stepKey =" waitForSignInPage " />
129+ <waitForPageLoad time = " 30 " stepKey =" waitForPageLoad6 " />
129130 <fillField userInput =" $$createCustomer.email$$" selector =" {{StorefrontCustomerSignInFormSection.emailField}}" stepKey =" fillEmail" />
130131 <fillField userInput =" $$createCustomer.password$$" selector =" {{StorefrontCustomerSignInFormSection.passwordField}}" stepKey =" fillPassword" />
131132 <click selector =" {{StorefrontCustomerSignInFormSection.signInAccountButton}}" stepKey =" clickSignInAccountButton" />
132133
133134 <!-- Go to Product Page -->
134135
135136 <amOnPage url =" {{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey =" amOnProduct1Page" />
136- <waitForPageLoad stepKey =" waitForProductPage" />
137+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad7" />
138+
137139 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey =" seeProductOptionDropDownTitle" />
138140 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey =" seeproductOptionDropDownOptionTitle1" />
139141 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option2')}}" stepKey =" seeproductOptionDropDownOptionTitle2" />
171173 <conditionalClick selector =" {{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector =" {{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible =" false" stepKey =" exposeProductOptions1" />
172174 <see selector =" {{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput =" option2" stepKey =" seeProductOptionValueDropdown1Input2" />
173175 <click selector =" {{CheckoutShippingSection.next}}" stepKey =" clickNext" />
176+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad8" />
174177
175178 <!-- Place Order -->
176179
177- <waitForElement selector = " {{CheckoutPaymentSection.placeOrder}} " time = " 30 " stepKey =" waitForPlaceOrderButton " />
180+ <actionGroup ref = " CheckoutSelectCheckMoneyOrderPaymentActionGroup " stepKey =" selectCheckMoneyOrder1 " />
178181 <click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrder" />
179182
180183 <grabTextFrom selector =" {{CheckoutSuccessMainSection.orderNumber22}}" stepKey =" grabOrderNumber" />
181184
182185 <!-- Open Order -->
183186
184187 <amOnPage url =" {{AdminOrdersPage.url}}" stepKey =" onOrdersPage" />
185- <waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappearOnOrdersPage " />
188+ <waitForPageLoad stepKey =" waitForPageLoadOrdersPage " />
186189 <fillField selector =" {{AdminOrdersGridSection.search}}" userInput =" {$grabOrderNumber}" stepKey =" fillOrderNum" />
187190 <click selector =" {{AdminOrdersGridSection.submitSearch}}" stepKey =" submitSearchOrderNum" />
188191 <waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappearOnSearch" />
189192 <click selector =" {{AdminOrdersGridSection.firstRow}}" stepKey =" clickOrderRow" />
193+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad10" />
190194
191195 <!-- Checking the correctness of displayed custom options for user parameters on Order -->
192196
196200 <!-- Switch to FR Store View Storefront -->
197201
198202 <amOnPage url =" {{StorefrontHomePage.url}}" stepKey =" amOnProduct4Page" />
199- <waitForPageLoad stepKey =" waitForStorefrontHomePage " />
203+ <waitForPageLoad time = " 30 " stepKey =" waitForPageLoad11 " />
200204 <click selector =" {{StorefrontHeaderSection.storeViewSwitcher}}" stepKey =" clickStoreViewSwitcher1" />
201205 <waitForElementVisible selector =" {{StorefrontHeaderSection.storeViewDropdown}}" stepKey =" waitForStoreViewDropdown1" />
202206 <click selector =" {{StorefrontHeaderSection.storeViewOption(customStoreFR.code)}}" stepKey =" selectStoreView1" />
203- <waitForPageLoad stepKey =" waitForPageLoad4 " />
207+ <waitForPageLoad stepKey =" waitForPageLoad12 " />
204208
205209 <amOnPage url =" {{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey =" amOnProduct2Page" />
206- <waitForPageLoad stepKey =" waitForProductPage2" />
210+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad13" />
211+
207212 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownTitle('FR Custom Options 1')}}" stepKey =" seeProductFrOptionDropDownTitle" />
208213 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('FR Custom Options 1', 'FR option1')}}" stepKey =" productFrOptionDropDownOptionTitle1" />
209214 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('FR Custom Options 1', 'FR option2')}}" stepKey =" productFrOptionDropDownOptionTitle2" />
241246 <conditionalClick selector =" {{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector =" {{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible =" false" stepKey =" exposeProductOptions3" />
242247 <see selector =" {{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput =" FR option2" stepKey =" seeProductFrOptionValueDropdown1Input3" />
243248 <click selector =" {{CheckoutShippingSection.next}}" stepKey =" clickNext1" />
249+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad14" />
244250
245251 <!-- Place Order -->
246252
247- <waitForElement selector = " {{CheckoutPaymentSection.placeOrder}} " time = " 30 " stepKey =" waitForPlaceOrderButton1 " />
253+ <actionGroup ref = " CheckoutSelectCheckMoneyOrderPaymentActionGroup " stepKey =" selectCheckMoneyOrder2 " />
248254 <click selector =" {{CheckoutPaymentSection.placeOrder}}" stepKey =" clickPlaceOrder1" />
249255
250256 <!-- Open Product Grid, Filter product and open -->
251257
252258 <amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" amOnProductGridPage1" />
253- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad5 " />
259+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad15 " />
254260
255- <actionGroup ref =" filterProductGridBySku " stepKey =" filterGroupedProductOptions1" >
261+ <actionGroup ref =" SearchForProductOnBackendActionGroup " stepKey =" filterGroupedProductOptions1" >
256262 <argument name =" product" value =" _defaultProduct" />
257263 </actionGroup >
264+
258265 <click selector =" {{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey =" openProductForEdit1" />
259- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad6 " />
266+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad16 " />
260267
261268 <!-- Switcher to Store FR-->
262269
270+ <scrollToTopOfPage stepKey =" scrollToTopOfPage2" />
263271 <click selector =" {{AdminProductFormActionSection.changeStoreButton}}" stepKey =" clickStoreSwitcher1" />
264272 <click selector =" {{AdminProductFormActionSection.selectStoreView(customStoreFR.name)}}" stepKey =" clickStoreView1" />
265273 <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" acceptMessage1" />
266274
267275 <!-- Open tab Customizable Options -->
268276
269- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad9 " />
277+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad17 " />
270278 <conditionalClick selector =" {{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector =" {{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible =" true" stepKey =" clickIfContentTabCloses4" />
271279
272280 <!-- Update Option Customizable Options and Option Value 1-->
273281
274- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad10 " />
282+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad18 " />
275283 <checkOption selector =" {{AdminProductCustomizableOptionsSection.useDefaultOptionTitle}}" stepKey =" checkUseDefaultOptionTitle" />
276284 <checkOption selector =" {{AdminProductCustomizableOptionsSection.useDefaultOptionTitleByIndex('0')}}" stepKey =" checkUseDefaultOptionValueTitle1" />
277285
278286 <!-- Update Product with Option Value 1 DropDown 1-->
279287
280- <waitForPageLoad time =" 30" stepKey =" waitForPageLoad11 " />
288+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad19 " />
281289 <checkOption selector =" {{AdminProductCustomizableOptionsSection.useDefaultOptionTitleByIndex('1')}}" stepKey =" checkUseDefaultOptionValueTitle2" />
282290 <click selector =" {{AdminProductFormActionSection.saveButton}}" stepKey =" clickSaveButton3" />
283291
284292 <!-- Go to Product Page-->
285293
286294 <amOnPage url =" {{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey =" amOnProduct2Page2" />
287- <waitForPageLoad stepKey =" waitForProductPage3" />
295+ <waitForPageLoad time =" 30" stepKey =" waitForPageLoad20" />
296+
288297 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey =" seeProductOptionDropDownTitle1" />
289298 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey =" seeProductOptionDropDownOptionTitle3" />
290299 <seeElement selector =" {{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option2')}}" stepKey =" seeProductOptionDropDownOptionTitle4" />
291300 </test >
292- </tests >
301+ </tests >
0 commit comments