File tree 1 file changed +4
-3
lines changed
src/Magento/FunctionalTestingFramework/Module
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -367,16 +367,17 @@ public function waitForPageLoad($timeout = null)
367
367
368
368
$ this ->waitForJS ('return document.readyState == "complete" ' , $ timeout );
369
369
$ this ->waitForAjaxLoad ($ timeout );
370
- $ this ->waitForLoadingMaskToDisappear ();
370
+ $ this ->waitForLoadingMaskToDisappear ($ timeout );
371
371
}
372
372
373
373
/**
374
374
* Wait for all visible loading masks to disappear. Gets all elements by mask selector, then loops over them.
375
375
*
376
+ * @param integer $timeout
376
377
* @throws \Exception
377
378
* @return void
378
379
*/
379
- public function waitForLoadingMaskToDisappear ()
380
+ public function waitForLoadingMaskToDisappear ($ timeout )
380
381
{
381
382
foreach (self ::$ loadingMasksLocators as $ maskLocator ) {
382
383
// Get count of elements found for looping.
@@ -385,7 +386,7 @@ public function waitForLoadingMaskToDisappear()
385
386
for ($ i = 1 ; $ i <= count ($ loadingMaskElements ); $ i ++) {
386
387
// Formatting and looping on i as we can't interact elements returned above
387
388
// eg. (//div[@data-role="spinner"])[1]
388
- $ this ->waitForElementNotVisible ("( {$ maskLocator })[ {$ i }] " , 30 );
389
+ $ this ->waitForElementNotVisible ("( {$ maskLocator })[ {$ i }] " , $ timeout );
389
390
}
390
391
}
391
392
}
You can’t perform that action at this time.
0 commit comments