I would like to end-to-end test our angular 2 application using Protractor, but I'm stuck with the message:
"Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds."
My conf file.
exports.config = {
directConnect: true,
specs: ['spec.js'],
// For angular2 tests
useAllAngular2AppRoots: true,
}
Chrome is opened, and the website is also opened, then nothing happens till the the timeout.
When disabling the synchronisation (using browser.ignoreSynchronization = true; ), it's OK. But I'm loosing the "automatic waiting" feature, one of the main advantages of using Protractor.
The application is fully based on angular 2. So why this does not work?
Our developers told me that we are not polling (one of the possible cause according Protractor documentation). By the way, we are using websocket architecture. I don't know if there's a link.
Actually, I don't know how to troubleshoot this issue at all.
Could someone help, please?