Skip to content
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

Closed
wants to merge 16 commits into from

Conversation

diosmosis
Copy link
Member

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.

diosmosis added 16 commits May 2, 2015 20:32
… and create Platform object to contain platform setup work.
…to phantomjs platform object. (for screenshot testing lib)
…maining phantom object references to phantom Platform object and rely on node.js super globals.
…form object. (for screenshot testing framework)
…ramework setup + mocha/chai/resemble setup + fixture setup).
@diosmosis diosmosis added Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. labels May 4, 2015
@diosmosis diosmosis modified the milestones: Piwik 2.14.0, Long term, 2.14.0 May 4, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab
Copy link
Member

mattab commented Jul 25, 2016

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.

@mattab mattab closed this Jul 25, 2016
@mattab mattab deleted the screenshot_test_refactor branch October 1, 2016 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants