Device
ts
type DemoDevice = 'desktop' | 'tablet' | 'mobile';
function resolveDemoDevice(raw: string | undefined): DemoDevice
function demoDeviceFromEnv(env: Record<string, string | undefined>): DemoDevice
function demoContextOptions(device: DemoDevice): DemoDevicePreset
function applyDemoViewport(page: Page, device: DemoDevice): Promise<void>
function isDemoFullscreen(env: Record<string, string | undefined>): boolean
function isOsWindowFullscreen(env: Record<string, string | undefined>): boolean
function presentDemoWindow(
page: Page,
env?: Record<string, string | undefined>,
): Promise<void>DEMO_DEVICE_PRESETS is the viewport table in the devices guide.