-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
percy tests #1758
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
percy tests #1758
Conversation
This PR is ready for review. The percy snapshots are on https://percy.io/plotly/plotly.py/builds/2538608. The 3d and mapbox snapshots don't look good, I still have to investigate this. |
Nice! So the 3d and mapbox stuff basically won't work at all because Percy snapshots the DOM and the 3d stuff is in a canvas3d/webgl context whereas the mapbox stuff makes external requests for images which probably aren't done or aren't available at snapshot-time. This is already a big step forward in terms of locking down regressions though! In order to move forward I think we should add Percy to the Github checks and ensure that Jon has access to Percy (heads-up @bpostlethwaite!) |
OK thanks, I'll remove the 3d and mapbox stuff for now then. |
Oh actually I would leave them in! It proves that they don't error out, and we do get some benefit from knowing that the legends etc render as expected IMO |
I think adding Percy to the Github checks needs to be done by someone with admin rights on Percy, cc @bpostlethwaite |
@emmanuelle can you rebase onto |
This reverts commit fb83b64.
Interestingly, in the case of animations the snapshot seems to be at a random position, hence the visual diff here. |
Should we avoid animations in the visual test suite? Or is there a way to freeze the animation at a given frame? |
Hehe yeah. Are the animations in auto-play mode? that won't work, as Percy isn't quite that consistent about timing :) either that or we need to use animations with a single frame or something |
but in general: hurray, it's working! |
yes, it is auto-play. It's pretty cool that we could detect this with percy :-) |
I was thinking maybe of having a very large duration between frames so that always the same frame is captured... |
so |
💃 |
No description provided.