File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Magento/FunctionalTestingFramework/Module Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,13 @@ public function waitForPageLoad($timeout = 15)
204
204
public function waitForLoadingMaskToDisappear ()
205
205
{
206
206
foreach ( self ::$ loadingMasksLocators as $ maskLocator ) {
207
+ // Get count of elements found for looping.
208
+ // Elements are NOT useful for interaction, as they cannot be fed to codeception actions.
207
209
$ loadingMaskElements = $ this ->_findElements ($ maskLocator );
208
210
for ($ i = 1 ; $ i <= count ($ loadingMaskElements ); $ i ++) {
209
- $ this ->waitForElementNotVisible ("{$ maskLocator }[ {$ i }] " , 30 );
211
+ // Formatting and looping on i as we can't interact elements returned above
212
+ // eg. (//div[@data-role="spinner"])[1]
213
+ $ this ->waitForElementNotVisible ("( {$ maskLocator })[ {$ i }] " , 30 );
210
214
}
211
215
}
212
216
}
You can’t perform that action at this time.
0 commit comments