mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
Format + e2e manifest for Drawer/shell B100
This commit is contained in:
parent
1bb3fc7303
commit
e09f01e683
3 changed files with 6 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue