From fd11944ed66496ff69be2e213ea542a7dd702c2f Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 5 Nov 2026 13:29:27 +0100 Subject: [PATCH] test(collections): count the labels a row shows, and give the three-viewport spec room to clean up --- client/e2e/collection-row-names-2981.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/e2e/collection-row-names-2981.spec.ts b/client/e2e/collection-row-names-2981.spec.ts index cbdd76e0e..8d384f680 100644 --- a/client/e2e/collection-row-names-2981.spec.ts +++ b/client/e2e/collection-row-names-2981.spec.ts @@ -29,6 +29,7 @@ for (const viewport of [ { width: 1024, height: 800 }, ]) { test(`place names stay readable next to long labels at ${viewport.width}px`, async ({ page }) => { + test.setTimeout(90_000); await page.setViewportSize(viewport); const addonsResponse = await page.request.get('/api/admin/addons'); expect(addonsResponse.ok()).toBeTruthy(); @@ -83,7 +84,7 @@ for (const viewport of [ expect(await name.evaluate((el) => el.scrollWidth <= el.clientWidth + 1)).toBe(true); await expectInside(row); // Every label is either on the row or counted by its "+N" chip. - const shown = await row.locator('.col-lrow-label').count(); + const shown = await row.locator('.col-lrow-label:not(.is-over)').count(); const more = await row .locator('.col-lrow-more') .textContent()