Files
superset2/tests/unit_tests/utils
Elizabeth Thompson a46dcf79ee fix(reports): wait for chart holders to attach before per-chart capture
Locator.count() reads the DOM at call time without waiting, and the
dashboard's standalone container attaches before React renders any chart
holders. In live testing this raced: some runs captured all charts, others
found 0 and fell back to the full-dashboard screenshot.

Wait for the first chart holder to attach (bounded by load_wait) before
counting; return an empty list if none appear so the caller's fallback
still engages for genuinely empty dashboards.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 16:21:33 +00:00
..