authorgravatar for lastobelus@mac.comMichael Johnston <lastobelus@mac.com> 2026-10-09 20:01:40-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-10 00:01:40-03:00
log467fea963f36086731b47cb43b6a7d8e5645bf4c
treec319ecbce44d59943dd599c6ab54dd3a14a7b2ef
parent88edfacf5d5f2ad6deec7ee5ec1c19ee68f23a13
signature Signed by PGP key B5690EEEBB952194

test(web): allow cold timeline imports on CI (#16608)


1 files changed, 2 insertions(+), 1 deletions(-)

apps/web/src/components/chat/MessagesTimeline.test.tsx+2-1
...@@ -260,10 +260,11 @@ function stubDomGlobals() {...@@ -260,10 +260,11 @@ function stubDomGlobals() {
260}260}
261261
262beforeEach(stubDomGlobals);262beforeEach(stubDomGlobals);
263// Cold transformation of the full chat dependency graph needs extra time on slower CI workers.
263beforeAll(async () => {264beforeAll(async () => {
264 Object.defineProperty(window, "matchMedia", { value: matchMedia, configurable: true });265 Object.defineProperty(window, "matchMedia", { value: matchMedia, configurable: true });
265 ({ MessagesTimeline, resolvePreviewAnnotationImage } = await import("./MessagesTimeline"));266 ({ MessagesTimeline, resolvePreviewAnnotationImage } = await import("./MessagesTimeline"));
266}, 30_000);267}, 120_000);
267268
268const ACTIVE_THREAD_ENVIRONMENT_ID = EnvironmentId.make("environment-local");269const ACTIVE_THREAD_ENVIRONMENT_ID = EnvironmentId.make("environment-local");
269const MESSAGE_CREATED_AT = "2026-03-17T19:12:28.000Z";270const MESSAGE_CREATED_AT = "2026-03-17T19:12:28.000Z";