Environment variables
| Variable | Default | Meaning |
|---|---|---|
E2E_DEMO | unset | 1 / true — multi-window, pacing, video |
E2E_DEMO_OVERLAY | on | 0 hides the bottom demo bar on stills and video |
E2E_DEMO_DEVICE | desktop | One preset. Omit on stills to run desktop + tablet + mobile |
E2E_DEMO_FULLSCREEN | on when E2E_DEMO=1 | 0 windowed; 1 forces on |
E2E_DEMO_HEADED | inferred from --headed / HEADED | OS fullscreen only when a window exists |
E2E_DEMO_VIDEO | on when E2E_DEMO=1 | 0 skips recordVideo |
E2E_DEMO_VIDEO_DIR | test-results/e2e-demo/<kind>/<stamp> | Override output folder (kind is stills or video) |
E2E_DEMO_CLEAN | unset | 1 / true — delete prior test-results/e2e-demo stamps before this run |
E2E_DEMO_COPY_WALK | <artifactsDir>/e2e_demo_walk_<stamp>.mp4 when that dir exists | Explicit walk copy path |
E2E_DEMO_COPY_TRANSCRIPT | sibling .txt of the walk copy | Explicit transcript copy path |
E2E_DEMO_SCREENSHOT_DIR | artifactsDir on E2E_DEMO=1 | Folder for demoScreenshot copies |
DOCS_E2E_PORT | 4177 | This repo only — VitePress preview port for docs:e2e |
E2E_DEMO_TRANSCRIPT | on | 0 skips the handout |
E2E_DEMO_TRANSCRIPT_MD | unset | 1 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.