From 16c2358479ce9dcf5ff88472c0ee2ba4765ae27f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 20:07:35 +0000 Subject: [PATCH] =?UTF-8?q?B129=20=E2=80=94=20Restore=20anchored=20trend-c?= =?UTF-8?q?ontrol=20E2E=20regex=20after=20rebase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index 93a02f42..b41e4b9b 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -154,9 +154,7 @@ test.describe('Municípios — jornadas por papel', () => { await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() const trendButton = page.getByRole('button', { - name: new RegExp( - `^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`, - ), + name: new RegExp(`^Editar tendência política em ${municipality.name}`), }) await trendButton.click() const trendPopover = page.locator('[data-slot="popover-content"]') @@ -174,14 +172,7 @@ test.describe('Municípios — jornadas por papel', () => { await page.keyboard.press('Escape') await page.reload() - await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() - await page - .getByRole('button', { - name: new RegExp( - `^Editar tendência política em ${municipality.name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`, - ), - }) - .click() + await trendButton.click() const reopened = page.locator('[data-slot="popover-content"]') await expect(reopened.getByLabel('Tendência', { exact: true })).toHaveValue('favoravel') await expect(reopened.getByLabel('Justificativa')).toHaveValue(note) @@ -438,11 +429,8 @@ test.describe('Municípios — FAB ações rápidas mobile (B126)', () => { await page.goto( `${campaign.baseURL}/campanha/municipios?q=${encodeURIComponent(municipality.name)}`, ) -<<<<<<< HEAD -======= await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() ->>>>>>> 29b49e63 (B129 — Align municipality E2E with page chrome and scoped trend control) const fab = page.getByRole('button', { name: 'Ações rápidas' }) await expect(fab).toBeVisible() await expect(page.getByLabel('Buscar na campanha')).toHaveCount(0) @@ -493,11 +481,7 @@ test.describe('Municípios — FAB overlay polish (B126)', () => { await campaign.login(page, coordinator.email!, coordinator.password) await page.goto(`${campaign.baseURL}/campanha/municipios`) -<<<<<<< HEAD - await expect(page.getByRole('button', { name: 'Ações rápidas' })).toBeVisible() -======= await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() ->>>>>>> 29b49e63 (B129 — Align municipality E2E with page chrome and scoped trend control) await page.getByRole('button', { name: 'Ações rápidas' }).click() const overlay = page.locator('#CampaignQuickActionsOverlay')