From 1a722e88823d507e53f1d22aa88480dbe3b02084 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 00:47:13 +0000 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20scope=20B27=20advisors=20reopen=20a?= =?UTF-8?q?fter=20reload=20by=20munic=C3=ADpio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Loose "Editar assessores" matched multiple list rows after reload under parallel fixtures — pin to the claimed municipality name like the open click. --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index e89e530a..a569125f 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -147,7 +147,11 @@ test.describe('Municípios — jornadas por papel', () => { // Persistence: reload and reopen to confirm the server, not just local // state, now holds the assignment. await page.reload() - await page.getByRole('button', { name: 'Editar assessores' }).click() + await page + .getByRole('button', { + name: new RegExp(`^Editar assessores em ${municipality.name}\\b`), + }) + .click() await expect( page.locator('[data-slot="popover-content"]').getByRole('button', { name: `Remover ${advisor.name}`,