test(tests): measure commit latency on a seeded draft

Opt-in spec (MEASURE_COMMIT=1, MEASURE_BUILD=preview for the production build): vertex drag, « + » and « − » on a run-seeded equine draft, three runs each, from the pointerup to the painted frame showing the new geometry with the undo entry. Never editor-equine nor the historical copy.
This commit is contained in:
bchanot committed 2026-11-18 12:20:45 +01:00
1 parent e603de39e8
commit e6f47280ad
3 files changed
+273 -3

No files matched your search

+5 -3
View File
@@ -1,6 +1,7 @@
/**
* The production build of the hand-run measure (support/measure-drag.ts), opt-in with
* MEASURE_DRAG=1 MEASURE_BUILD=preview: the app built with the same sandbox environment
* The production build of the hand-run measures (support/measure-drag.ts and
* support/measure-commit.ts), opt-in with MEASURE_DRAG=1 or MEASURE_COMMIT=1 and
* MEASURE_BUILD=preview: the app built with the same sandbox environment
* the shell config gives its dev server (the fake Supabase origin, the sandbox anon key),
* written under the git-ignored e2e/test-results, then served by `vite preview` on a
* loopback port of its own (`--strictPort`, never reused). No suite and no Docker config
@@ -16,7 +17,8 @@ const OUT = join(APP, 'e2e/test-results/measure-build')
const VITE = join(APP, 'node_modules/.bin/vite')
export const previewMeasure = () =>
process.env.MEASURE_DRAG === '1' && process.env.MEASURE_BUILD === 'preview'
(process.env.MEASURE_DRAG === '1' || process.env.MEASURE_COMMIT === '1') &&
process.env.MEASURE_BUILD === 'preview'
function viteEnv() {
const anonKey = process.env.SANDBOX_ANON_KEY