mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-01 03:53:05 +00:00
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()
|
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}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue