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
Refactor screenshot testing framework to allow multiple 'backends' other than phantomjs + allow toggled optimizations #7825
Conversation
… and create Platform object to contain platform setup work.
…eparate in IoC config & in source code.
…m w/o bigger refactoring.
…tect phantomjs + electron.
…to phantomjs platform object. (for screenshot testing lib)
… to ResembleLoader class.
…maining phantom object references to phantom Platform object and rely on node.js super globals.
…latform initialization.
…ronment global to run-tests.js file.
…ct in screenshot testing lib.
…form object. (for screenshot testing framework)
…ramework setup + mocha/chai/resemble setup + fixture setup).
Thank you for this proposed pull request. Because it was last updated more than one month ago, it is our policy to close pull requests opened for a long time without updates. If you would like to continue work on the pull request, please simply ping us to have it re-opened (after you have pushed a new commit). We hope you understand this and we look forward to seeing an update from you on this pull request or another one! Thanks. |
This PR adds a DI container to the screenshot testing lib, switches to using the node.js path/util modules (packaged on npm) + introduces a partially working electron platform backend. With some further work, a phantomcss backend could be created, though tests would likely have to be rewritten in that case.
Currently stalled on electron support due to lack of instrumentation tools. electron does not expose event posting/forwarding code to browser windows, so simulating clicks/keypresses/etc. is not directly possible. I know how to do it in C++ w/ chromium, so it's possible via an extension.
More to follow.