Skip to content

Environment variables

VariableDefaultMeaning
E2E_DEMOunset1 / true — multi-window, pacing, video
E2E_DEMO_OVERLAYon0 hides the bottom demo bar on stills and video
E2E_DEMO_DEVICEdesktopOne preset. Omit on stills to run desktop + tablet + mobile
E2E_DEMO_FULLSCREENon when E2E_DEMO=10 windowed; 1 forces on
E2E_DEMO_HEADEDinferred from --headed / HEADEDOS fullscreen only when a window exists
E2E_DEMO_VIDEOon when E2E_DEMO=10 skips recordVideo
E2E_DEMO_VIDEO_DIRtest-results/e2e-demo/<kind>/<stamp>Override output folder (kind is stills or video)
E2E_DEMO_CLEANunset1 / true — delete prior test-results/e2e-demo stamps before this run
E2E_DEMO_COPY_WALK<artifactsDir>/e2e_demo_walk_<stamp>.mp4 when that dir existsExplicit walk copy path
E2E_DEMO_COPY_TRANSCRIPTsibling .txt of the walk copyExplicit transcript copy path
E2E_DEMO_SCREENSHOT_DIRartifactsDir on E2E_DEMO=1Folder for demoScreenshot copies
DOCS_E2E_PORT4177This repo only — VitePress preview port for docs:e2e
E2E_DEMO_TRANSCRIPTon0 skips the handout
E2E_DEMO_TRANSCRIPT_MDunset1 also writes transcript.md

isE2eDemo(), isDemoVideo(env), isDemoTranscript(env), and isDemoClean(env) read these flags. Pass process.env from Playwright helpers. Teaching stills (shot) write when E2E_DEMO is unset (or E2E_DEMO_VIDEO=0). Video (E2E_DEMO=1) does not hold the ring or write a still. Pulse, then click, then a short pause. See Stills and Video.

Released under the MIT License.