[web] E2E: Playwright flows recorded and the Aula shots, on the demo control plane at a fixed instant

This commit is contained in:
2026-11-19 01:36:02 +01:00
parent a212d5d421
commit 76a56311cf
12 changed files with 490 additions and 30 deletions
+5 -2
View File
@@ -20,8 +20,11 @@ export interface Mock {
};
}
const now = () => new Date().toISOString();
const later = (s: number) => new Date(Date.now() + s * 1000).toISOString();
/** The stand-in's clock: the real one, or a fixed instant (the e2e suite's, so two takes of a screen match). */
export const clock: { fixed: number | null } = { fixed: null };
export const nowMs = () => clock.fixed ?? Date.now();
const now = () => new Date(nowMs()).toISOString();
const later = (s: number) => new Date(nowMs() + s * 1000).toISOString();
export function host(hostname: string, share: boolean) {
return {