From d34c681abfdaec5abe39fdfb53ea306a0a96cd87 Mon Sep 17 00:00:00 2001 From: Zakk Date: Fri, 2 Oct 2026 21:48:25 +1000 Subject: [PATCH] test(e2e): stop reloading the DNS page between its two cards --- e2e/charts.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/charts.spec.ts b/e2e/charts.spec.ts index ef179446..6ce350eb 100644 --- a/e2e/charts.spec.ts +++ b/e2e/charts.spec.ts @@ -367,8 +367,11 @@ const filledCards: Array<[string, string, string, (card: import('@playwright/tes for (const width of [1440, 390]) { test(`cards fill their width and height at ${width}px`, async ({page}) => { await page.setViewportSize({width, height: 1000}); + let shown = ''; for (const [route, name, content, prepare] of filledCards) { - await page.goto(`/#/${route}`); + // Going to the address the page already shows reloads it, which cancels the chunks still loading and logs them. + if (route !== shown) await page.goto(`/#/${route}`); + shown = route; const card = page.getByRole('region', {name, exact: true}); await card.scrollIntoViewIfNeeded(); await prepare(card);