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:
parent
d64b700872
commit
62673367c9
1 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ test.describe('Municípios — jornadas por papel', () => {
|
|||
)
|
||||
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()
|
||||
|
||||
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
|
||||
// state, now holds the assignment.
|
||||
await page.reload()
|
||||
await page.getByRole('button', { name: 'Editar assessores' }).click()
|
||||
await page.getByRole('button', { name: 'Editar assessores' }).first().click()
|
||||
await expect(
|
||||
page.locator('[data-slot="popover-content"]').getByRole('button', {
|
||||
name: `Remover ${advisor.name}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue