protractor
protractor copied to clipboard
Protractor.waitForAngular - add posibility to wait for jQuery.ajax requests
Our and other projects uses Angular and some other third-party libs. Those libs in common use jQuery.ajax - which activity doesn't tracked by waitForAngular (and internally by $browser.notifyWhenNoOutstandingRequests).
It will be good to waitForAngular internally checks for jQuery.active ==0 or provide an API to add custom additional checks.
Without this our test code become polluted by sleep or our custom waitForJquery (jQuery.active ==0) before each significant operation.