From 62673367c92bb5f60391e084348c5249e089b82b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 19:39:41 +0000 Subject: [PATCH] =?UTF-8?q?test(e2e):=20harden=20munic=C3=ADpio=20list=20s?= =?UTF-8?q?electors=20after=20B127=20omnibox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use campaignPageChrome for FAB specs and .first() on Editar assessores when mobile+desktop cells both mount. --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index 9a2064f9..7082dd76 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -94,7 +94,7 @@ test.describe('Municípios — jornadas por papel', () => { ) await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() - const advisorsTrigger = page.getByRole('button', { name: 'Editar assessores' }) + const advisorsTrigger = page.getByRole('button', { name: 'Editar assessores' }).first() await advisorsTrigger.click() const advisorsPopover = page.locator('[data-slot="popover-content"]') @@ -124,7 +124,7 @@ 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: 'Editar assessores' }).first().click() await expect( page.locator('[data-slot="popover-content"]').getByRole('button', { name: `Remover ${advisor.name}`,