You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2026/10/05 22:16:39 UTC
(superset) 01/01: fix(playwright): use TIMEOUT.CHART_RENDER for mobile dashboard chart-paint wait
This is an automated email from the ASF dual-hosted git repository.
sadpandajoe pushed a commit to branch ultraset-mh-mobile-dashboard-timeout-2
in repository https://gitbox.apache.org/repos/asf/superset.git
commit ba932ccb7ca7c8dbea6941866ec9926061695f3c
Author: Joe Li <47...@users.noreply.github.com>
AuthorDate: Mon Oct 5 22:16:19 2026 +0000
fix(playwright): use TIMEOUT.CHART_RENDER for mobile dashboard chart-paint wait
The mobile dashboard spec's "wait for first chart to be visible" assertion
used TIMEOUT.PAGE_LOAD * 2 (20s), but CI showed the chart consistently
taking 22.9-23.7s to render (3/3 attempts on master). Every other
"wait for chart to paint" assertion in the Playwright suite already uses
TIMEOUT.CHART_RENDER (30s) for this exact purpose; this spec never
adopted that convention.
Co-Authored-By: Claude Sonnet 5 <no...@anthropic.com>
---
superset-frontend/playwright/tests/mobile/mobile-dashboard.spec.ts | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/playwright/tests/mobile/mobile-dashboard.spec.ts b/superset-frontend/playwright/tests/mobile/mobile-dashboard.spec.ts
index 56fe21ebd9e..4e140c09f0a 100644
--- a/superset-frontend/playwright/tests/mobile/mobile-dashboard.spec.ts
+++ b/superset-frontend/playwright/tests/mobile/mobile-dashboard.spec.ts
@@ -168,9 +168,12 @@ test.describe('Mobile Dashboard Interaction', () => {
.locator('[data-test="chart-container"]')
.or(page.locator('.dashboard-chart'));
- // Wait for at least one chart to be visible (with timeout)
+ // Wait for at least one chart to be visible (with timeout). The first
+ // chart assertion absorbs the whole uncached query round-trip, so this
+ // uses TIMEOUT.CHART_RENDER like every other "wait for chart to paint"
+ // assertion in the suite, rather than a page-load budget.
await expect(chartContainers.first()).toBeVisible({
- timeout: TIMEOUT.PAGE_LOAD * 2,
+ timeout: TIMEOUT.CHART_RENDER,
});
});