Skip to content

Commit d858a15

Browse files
committed
MAGETWO-91215: [2.2.x][Jenkins-Tests-CE] - StorefrontPurchaseProductCustomOptionsDifferentStoreViewsTest randomly fails on Jenkins
1 parent 4361f70 commit d858a15

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontPurchaseProductCustomOptionsDifferentStoreViewsTest.xml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
<conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions1"/>
176176
<see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="option2" stepKey="seeProductOptionValueDropdown1Input2"/>
177177
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
178+
<waitForPageLoad time="30" stepKey="waitForPageLoad8"/>
178179

179180
<!-- Place Order -->
180181

@@ -186,12 +187,12 @@
186187
<!-- Open Order -->
187188

188189
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/>
189-
<waitForPageLoad time="30" stepKey="waitForPageLoad8"/>
190+
<waitForPageLoad time="30" stepKey="waitForPageLoad9"/>
190191
<fillField selector="{{OrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="fillOrderNum"/>
191192
<click selector="{{OrdersGridSection.submitSearch}}" stepKey="submitSearch"/>
192193
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/>
193194
<click selector="{{OrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
194-
<waitForPageLoad time="30" stepKey="waitForPageLoad9"/>
195+
<waitForPageLoad time="30" stepKey="waitForPageLoad10"/>
195196

196197
<!-- Checking the correctness of displayed custom options for user parameters on Order -->
197198

@@ -201,14 +202,14 @@
201202
<!-- Switch to FR Store View Storefront -->
202203

203204
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnProduct4Page"/>
204-
<waitForPageLoad time="30" stepKey="waitForPageLoad10"/>
205+
<waitForPageLoad time="30" stepKey="waitForPageLoad11"/>
205206
<click selector="{{StorefrontHeaderSection.storeViewSwitcher}}" stepKey="clickStoreViewSwitcher1"/>
206207
<waitForElementVisible selector="{{StorefrontHeaderSection.storeViewDropdown}}" stepKey="waitForStoreViewDropdown1"/>
207208
<click selector="{{StorefrontHeaderSection.storeViewOption(customStoreFR.code)}}" stepKey="selectStoreView1"/>
208-
<waitForPageLoad stepKey="waitForPageLoad11"/>
209+
<waitForPageLoad stepKey="waitForPageLoad12"/>
209210

210211
<amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page"/>
211-
<waitForPageLoad time="30" stepKey="waitForPageLoad12"/>
212+
<waitForPageLoad time="30" stepKey="waitForPageLoad13"/>
212213

213214
<seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('FR Custom Options 1')}}" stepKey="seeProductFrOptionDropDownTitle"/>
214215
<seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('FR Custom Options 1', 'FR option1')}}" stepKey="productFrOptionDropDownOptionTitle1"/>
@@ -249,6 +250,7 @@
249250
<conditionalClick selector="{{CheckoutPaymentSection.productOptionsByProductItemPrice('150')}}" dependentSelector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" visible="false" stepKey="exposeProductOptions3"/>
250251
<see selector="{{CheckoutPaymentSection.productOptionsActiveByProductItemPrice('150')}}" userInput="FR option2" stepKey="seeProductFrOptionValueDropdown1Input3"/>
251252
<click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext1"/>
253+
<waitForPageLoad time="30" stepKey="waitForPageLoad14"/>
252254

253255
<!-- Place Order -->
254256

@@ -258,13 +260,13 @@
258260
<!-- Open Product Grid, Filter product and open -->
259261

260262
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage1"/>
261-
<waitForPageLoad time="30" stepKey="waitForPageLoad13"/>
263+
<waitForPageLoad time="30" stepKey="waitForPageLoad15"/>
262264

263265
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="filterGroupedProductOptions1">
264266
<argument name="product" value="_defaultProduct"/>
265267
</actionGroup>
266268
<click selector="{{AdminProductGridSection.productGridXRowYColumnButton('1', '2')}}" stepKey="openProductForEdit1"/>
267-
<waitForPageLoad time="30" stepKey="waitForPageLoad14"/>
269+
<waitForPageLoad time="30" stepKey="waitForPageLoad16"/>
268270

269271
<!-- Switcher to Store FR-->
270272
<scrollToTopOfPage stepKey="scrollToTopOfPage2"/>
@@ -274,25 +276,25 @@
274276

275277
<!-- Open tab Customizable Options -->
276278

277-
<waitForPageLoad time="30" stepKey="waitForPageLoad15"/>
279+
<waitForPageLoad time="30" stepKey="waitForPageLoad17"/>
278280
<conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.checkIfCustomizableOptionsTabOpen}}" visible="true" stepKey="clickIfContentTabCloses4" />
279281

280282
<!-- Update Option Customizable Options and Option Value 1-->
281283

282-
<waitForPageLoad time="30" stepKey="waitForPageLoad16"/>
284+
<waitForPageLoad time="30" stepKey="waitForPageLoad18"/>
283285
<checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionTitle}}" stepKey="checkUseDefaultOptionTitle"/>
284286
<checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionValueTitleByIndex('0')}}" stepKey="checkUseDefaultOptionValueTitle1"/>
285287

286288
<!-- Update Product with Option Value 1 DropDown 1-->
287289

288-
<waitForPageLoad time="30" stepKey="waitForPageLoad17"/>
290+
<waitForPageLoad time="30" stepKey="waitForPageLoad19"/>
289291
<checkOption selector="{{AdminProductCustomizableOptionsSection.useDefaultOptionValueTitleByIndex('1')}}" stepKey="checkUseDefaultOptionValueTitle2"/>
290292
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton3"/>
291293

292294
<!--Go to Product Page-->
293295

294296
<amOnPage url="{{StorefrontHomePage.url}}$$createProduct.custom_attributes[url_key]$$.html" stepKey="amOnProduct2Page2"/>
295-
<waitForPageLoad time="30" stepKey="waitForPageLoad18"/>
297+
<waitForPageLoad time="30" stepKey="waitForPageLoad20"/>
296298

297299
<seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownTitle('Custom Options 1')}}" stepKey="seeProductOptionDropDownTitle1"/>
298300
<seeElement selector="{{StorefrontProductInfoMainSection.productOptionDropDownOptionTitle('Custom Options 1', 'option1')}}" stepKey="seeProductOptionDropDownOptionTitle3"/>

0 commit comments

Comments
 (0)