mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
fix(e2e): scope B42 trend drawer past QuickActions (B79)
This commit is contained in:
parent
a7f0bdc1f7
commit
c3fa60a4e8
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue