From c1fb8c03c415c314d992bd7d01fa2b1748bb462e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Thu, 6 Aug 2026 19:12:32 -0300 Subject: [PATCH] test(e2e): document municipality locator boundary --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index f59ea26c..4100a089 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -31,6 +31,8 @@ const municipalityContainer = (page: Page) => const escapeRegExp = (value: string) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') +// The button keeps a state suffix; the boundary prevents "São Félix" matching +// the longer municipality "São Félix do Coribe". const visibleMunicipalityButton = (page: Page, name: string) => municipalityContainer(page) .getByRole('button', { name: new RegExp(`^${escapeRegExp(name)}(?: —|$)`) })