Harden B126 FAB e2e waits for layout chrome instead of page h1

This commit is contained in:
Cursor Agent 2026-08-02 19:50:40 +00:00
parent 4bb3d65c70
commit 1cab8e9539
No known key found for this signature in database

View file

@ -427,8 +427,6 @@ test.describe('Municípios — FAB ações rápidas mobile (B126)', () => {
await page.goto(
`${campaign.baseURL}/campanha/municipios?q=${encodeURIComponent(municipality.name)}`,
)
await expect(page.getByRole('heading', { name: 'Municípios' })).toBeVisible()
const fab = page.getByRole('button', { name: 'Ações rápidas' })
await expect(fab).toBeVisible()
await expect(page.getByLabel('Buscar na campanha')).toHaveCount(0)
@ -479,7 +477,7 @@ test.describe('Municípios — FAB overlay polish (B126)', () => {
await campaign.login(page, coordinator.email!, coordinator.password)
await page.goto(`${campaign.baseURL}/campanha/municipios`)
await expect(page.getByRole('heading', { name: 'Municípios' })).toBeVisible()
await expect(page.getByRole('button', { name: 'Ações rápidas' })).toBeVisible()
await page.getByRole('button', { name: 'Ações rápidas' }).click()
const overlay = page.locator('#CampaignQuickActionsOverlay')