test(e2e): stop reloading the DNS page between its two cards

This commit is contained in:
Zakk committed 2026-10-02 21:59:00 +10:00
1 parent 010d7e4b07
commit d34c681abf
1 file changed
+4 -1
+4 -1
View File
@@ -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);