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}`,