Avoid Protractor Test Synchronization Timeouts During Long Polling
Angularjs recently introduced $ interval, an analogue of setInterval, to avoid cases where Protractor thought the page was still loading when it was actually polled.
However, this fix does not help in lengthy polling scenarios where the connection is open for x milliseconds and then closed by the server. Is there a workaround so Protractor will run the tests correctly?
source to share