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