From e09f01e6836e1a46f4a7f80e22620cf5c6a9f67f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 11:20:08 +0000 Subject: [PATCH] Format + e2e manifest for Drawer/shell B100 --- .../campaign/shell/CampaignQuickActionsSnapContext.tsx | 4 +--- tests/e2e/campaignMunicipalities.e2e.spec.ts | 5 ++++- tests/unit/campaignQuickActionsDrawer.unit.spec.tsx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/campaign/shell/CampaignQuickActionsSnapContext.tsx b/src/components/campaign/shell/CampaignQuickActionsSnapContext.tsx index 2910d196..b7ebe73d 100644 --- a/src/components/campaign/shell/CampaignQuickActionsSnapContext.tsx +++ b/src/components/campaign/shell/CampaignQuickActionsSnapContext.tsx @@ -34,9 +34,7 @@ const CampaignQuickActionsSnapContext = createContext { const pathname = usePathname() - const [snapPoint, setSnapPoint] = useState( - QUICK_ACTIONS_SNAP_DOCK, - ) + const [snapPoint, setSnapPoint] = useState(QUICK_ACTIONS_SNAP_DOCK) useEffect(() => { setSnapPoint(QUICK_ACTIONS_SNAP_DOCK) diff --git a/tests/e2e/campaignMunicipalities.e2e.spec.ts b/tests/e2e/campaignMunicipalities.e2e.spec.ts index c71eb8a8..f333d82e 100644 --- a/tests/e2e/campaignMunicipalities.e2e.spec.ts +++ b/tests/e2e/campaignMunicipalities.e2e.spec.ts @@ -414,7 +414,10 @@ test.describe('Municípios — cards no celular (B42)', () => { test.describe('Municípios — bottom drawer mobile (B100)', () => { test.use({ viewport: { width: 390, height: 844 } }) - test('dock on load, collapse on scroll down, reopen on handle tap', async ({ campaign, page }) => { + test('dock on load, collapse on scroll down, reopen on handle tap', async ({ + campaign, + page, + }) => { const { fixtures } = campaign const coordinator = await fixtures.createCampaignUser('coordinator', { name: fixtures.value('Coordenador Drawer'), diff --git a/tests/unit/campaignQuickActionsDrawer.unit.spec.tsx b/tests/unit/campaignQuickActionsDrawer.unit.spec.tsx index f9aac455..02981532 100644 --- a/tests/unit/campaignQuickActionsDrawer.unit.spec.tsx +++ b/tests/unit/campaignQuickActionsDrawer.unit.spec.tsx @@ -3,8 +3,8 @@ import type { ReactNode } from 'react' import { afterEach, describe, expect, it, vi } from 'vitest' import { CampaignGlobalSearchProvider } from '@/components/campaign/dashboard/CampaignGlobalSearchMount' -import { CampaignContentScroll } from '@/components/campaign/shell/CampaignQuickActionsHost' import { CampaignQuickActionsDrawer } from '@/components/campaign/shell/CampaignQuickActionsDrawer' +import { CampaignContentScroll } from '@/components/campaign/shell/CampaignQuickActionsHost' import { CampaignQuickActionsScrollCollapse, CampaignQuickActionsSnapProvider,