-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add extra wait for callbacks in queue #974
Conversation
FYI the PR that sparked this push for more robust percy snapshots is https://github.com/plotly/dash-docs/pull/676 This strategy looks great - I didn't know about Just the one comment above, then I think this will be good to go. BTW I had to approve one spurious percy diff here that seems to be frequently changing,
to have fixed height & width like: "layout": {"title": value, "width": 500, "height": 400} |
it's in the dash_page.py which is not documented, we should add a section for that part later |
Oh actually, one more concern: what if some existing cases are snapshotting pages that don't even have callbacks? I guess we could look at |
In the context of dash docs (where we use mostly this API) there is always at least one request like the home page. In the context of an app, you are right that no callback, no |
Oh... right, I forgot about the |
we don't have window.store outside the scope of dash apps. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it, wait_for_callbacks
is easy, clear, and explicit.
Add a CHANGELOG entry, then 💃
after the discussion with @alexcjohnson about the incident of dash-daq PR on dash docs, this PR adds one extra wait in
visit_and_snapshot
API to make sure all the callbacks in the queue get fired. tested with the local snapshots and also dash-docs tests, the results are positive.https://percy.io/plotly/dash-docs/builds/2904660
https://percy.io/plotly/dash/builds/2904645