-
Notifications
You must be signed in to change notification settings - Fork 86
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
Visual testing on Asciidoctor User Manual #30
Conversation
@mojavelinux In the intro section of the User Manual, the only visual "regression" are:
I changed viewport to 1920px*1080px |
@mojavelinux Could you please enable Travis build ? I want to know if the build is working on Travis |
Yep! I can take care of that. |
Enabled. I think you need to force push to trigger the build. |
This will be very important for me to get back to the work to upgrade us to Foundation 5/6. That requires changing from ems to rems in a lot of places and that introduces to room for a lot of subtle, hard to detect changes. |
stoyan/cssshrink#33 EDIT: Another way to fix this issue is to find out which of the |
I'd rather lock the version. I really don't want to spend a lot of time on upgrading tools since we might change the way we build the stylesheet anyway. That's where the visual testing comes in. |
@mojavelinux That was my initial plan but I couldn't figure out what version of I think we should use |
Here's the output you requested:
100% |
60ee864
to
1ac33d3
Compare
1ac33d3
to
030b548
Compare
@mojavelinux Thanks, the build is now running fine, but the screenshots are slightly different. |
We're going to use backstopjs to regression test the default stylesheet instead. See asciidoctor/asciidoctor#4070 |
Install and testing procedure:
Generate reference screenshots:
Generate user manual with the latest stylesheet:
NOTE: Do not forget to unable Google Fonts (ie. uncomment the @import)
Run test again:
Currently PhantomCSS hangs if I run the visual testing against the complete user-manual.html (ie. with the content div). Maybe PhantomCSS doesn't like id duplications (see asciidoctor/asciidoctor.org#565) or maybe the document is too big to be analyzed within reasonable time.
TODO