fix(e2e): scope B27 advisors reopen after reload by município

Loose "Editar assessores" matched multiple list rows after reload under
parallel fixtures — pin to the claimed municipality name like the open click.
This commit is contained in:
Cursor Agent 2026-08-02 00:47:13 +00:00
parent a723a41794
commit 1a722e8882
No known key found for this signature in database

View file

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