From 91f64307624d2e735e4eea44030a833c66b50e65 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 5 Nov 2026 14:18:04 +0100 Subject: [PATCH] test(collections): read a row's +N without waiting for one --- client/e2e/collection-row-names-2981.spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/e2e/collection-row-names-2981.spec.ts b/client/e2e/collection-row-names-2981.spec.ts index 8d384f680..67072f9da 100644 --- a/client/e2e/collection-row-names-2981.spec.ts +++ b/client/e2e/collection-row-names-2981.spec.ts @@ -85,10 +85,8 @@ for (const viewport of [ await expectInside(row); // Every label is either on the row or counted by its "+N" chip. const shown = await row.locator('.col-lrow-label:not(.is-over)').count(); - const more = await row - .locator('.col-lrow-more') - .textContent() - .catch(() => null); + // Read without waiting: a row whose labels all fit has no "+N". + const [more] = await row.locator('.col-lrow-more').allTextContents(); expect(shown + (more ? Number(more.replace('+', '')) : 0)).toBe(place.labels.length); } // The map's label strip stays inside the map: whole, or folded into its button.