Format + e2e manifest for Drawer/shell B100

This commit is contained in:
Cursor Agent 2026-08-01 11:20:08 +00:00
parent 1bb3fc7303
commit e09f01e683
No known key found for this signature in database
3 changed files with 6 additions and 5 deletions

View file

@ -34,9 +34,7 @@ const CampaignQuickActionsSnapContext = createContext<CampaignQuickActionsSnapCo
export const CampaignQuickActionsSnapProvider = ({ children }: { children: ReactNode }) => {
const pathname = usePathname()
const [snapPoint, setSnapPoint] = useState<QuickActionsSnapPoint | null>(
QUICK_ACTIONS_SNAP_DOCK,
)
const [snapPoint, setSnapPoint] = useState<QuickActionsSnapPoint | null>(QUICK_ACTIONS_SNAP_DOCK)
useEffect(() => {
setSnapPoint(QUICK_ACTIONS_SNAP_DOCK)

View file

@ -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'),

View file

@ -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,