From c3fa60a4e88624003782eca0ff0d1831ca74a485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Fri, 31 Jul 2026 14:13:02 -0300 Subject: [PATCH] fix(e2e): scope B42 trend drawer past QuickActions (B79) --- tests/e2e/campaignMunicipalities.e2e.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index e6d36d1d..fcc80a20 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -382,7 +382,8 @@ test.describe('Municípios — cards no celular (B42)', () => { await expect(page.getByRole('link', { name: 'Abrir município' })).toHaveCount(0) 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.getByText(municipality.name, { exact: true })).toBeVisible() await expect(page).toHaveURL(listURL)