B129 — Format campaignMunicipalities E2E spec

This commit is contained in:
Cursor Agent 2026-08-02 19:47:08 +00:00
parent 4cb21576c2
commit a92701db68
No known key found for this signature in database

View file

@ -154,7 +154,9 @@ 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.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`,
),
})
await trendButton.click()
const trendPopover = page.locator('[data-slot="popover-content"]')
@ -175,7 +177,9 @@ test.describe('Municípios — jornadas por papel', () => {
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible()
await 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.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}`,
),
})
.click()
const reopened = page.locator('[data-slot="popover-content"]')