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,