fix(e2e): scope B42 trend drawer past QuickActions (B79)

This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-31 14:13:02 -03:00
parent a7f0bdc1f7
commit c3fa60a4e8

View file

@ -382,7 +382,8 @@ test.describe('Municípios — cards no celular (B42)', () => {
await expect(page.getByRole('link', { name: 'Abrir município' })).toHaveCount(0) await expect(page.getByRole('link', { name: 'Abrir município' })).toHaveCount(0)
await card.getByRole('button', { name: 'Editar tendência política' }).click() await card.getByRole('button', { name: 'Editar tendência política' }).click()
const drawer = page.locator('[data-slot="drawer-popup"]') // B79 keeps CampaignQuickActionsDrawer mounted (modal=false); scope to the trend dialog.
const drawer = page.getByRole('dialog', { name: 'Editar tendência' })
await expect(drawer).toBeVisible() await expect(drawer).toBeVisible()
await expect(drawer.getByText(municipality.name, { exact: true })).toBeVisible() await expect(drawer.getByText(municipality.name, { exact: true })).toBeVisible()
await expect(page).toHaveURL(listURL) await expect(page).toHaveURL(listURL)