[web] E2E: Playwright flows recorded and the Aula shots, on the demo control plane at a fixed instant
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user