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)
204204 public function waitForLoadingMaskToDisappear ()
205205 {
206206 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.
207209 $ loadingMaskElements = $ this ->_findElements ($ maskLocator );
208210 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 );
210214 }
211215 }
212216 }
You can’t perform that action at this time.
0 commit comments