test(e2e): harden município list selectors after B127 omnibox

Use campaignPageChrome for FAB specs and .first() on Editar assessores
when mobile+desktop cells both mount.
This commit is contained in:
Cursor Agent 2026-08-02 19:39:41 +00:00
parent d64b700872
commit 62673367c9
No known key found for this signature in database

View file

@ -94,7 +94,7 @@ test.describe('Municípios — jornadas por papel', () => {
) )
await expect(campaignPageChrome(page, 'Municípios')).toBeVisible() 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() await advisorsTrigger.click()
const advisorsPopover = page.locator('[data-slot="popover-content"]') 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 // Persistence: reload and reopen to confirm the server, not just local
// state, now holds the assignment. // state, now holds the assignment.
await page.reload() await page.reload()
await page.getByRole('button', { name: 'Editar assessores' }).click() await page.getByRole('button', { name: 'Editar assessores' }).first().click()
await expect( await expect(
page.locator('[data-slot="popover-content"]').getByRole('button', { page.locator('[data-slot="popover-content"]').getByRole('button', {
name: `Remover ${advisor.name}`, name: `Remover ${advisor.name}`,