New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protractor Timeouts #76
Comments
Thanks for your feedback. |
Since I can not reproduce this and it seams that you have a working solution. Do you want to submit a PR? |
Sure, I'll see if I can get one in within the next week :) |
I created a new version of the plugin. Can you try it out: |
Sure! I'll try it out today |
Closing this. Let me know if you still get timeouts. |
@tjoskar just tested this today and it works, thank you for the fix! :) |
When running protractor test they will timeout on any component using the lazy load directive. Protractor watches the ngZone to know when pending xhr calls, timeouts and intervals are completed before running.
In the
scroll-listener.ts
the.sampleTime(100, scheduler)
creates a interval that wont ever end during a protractor test. I found a way arount this by the adding the following code to the directiveAccording to this https://github.com/angular/protractor/issues/3349#issuecomment-232253059 Protractor watches the main ngZone so if we run the interval out of it protractor run successfully. I'm not sure how this would work with the protractor tests on this project but I can try to make a pull request when I get the chance.
The text was updated successfully, but these errors were encountered: