From 43bcef7ebaba4932dc110ff69815c0e0ff41f4b9 Mon Sep 17 00:00:00 2001 From: byteful Date: Tue, 29 Sep 2026 21:10:58 -0400 Subject: [PATCH 1/2] preload org screen in create-org test --- .../src/features/host/org/create-org-screen.dom.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/community-web/src/features/host/org/create-org-screen.dom.test.tsx b/apps/community-web/src/features/host/org/create-org-screen.dom.test.tsx index 450cc528..c50686b8 100644 --- a/apps/community-web/src/features/host/org/create-org-screen.dom.test.tsx +++ b/apps/community-web/src/features/host/org/create-org-screen.dom.test.tsx @@ -14,6 +14,9 @@ import { ConsoleApp } from "../console-app" import { ConsoleNavigationProvider } from "../console-context" import { CreateOrgScreen } from "./create-org-screen" import { OrgProfileForm, socialLinksFromDraft, EMPTY_ORG_DRAFT } from "./org-profile-form" +// ConsoleApp mounts OrgScreen through React.lazy; loading its module graph cold inside a findBy +// window outran the 1 s default on a busy CI runner. Loading it here makes the lazy import instant. +import "./org-screen" const ORG_ID = "11111111-1111-4111-8111-111111111111" From b0726869ee8fdfb2e50fb1c278aaaf869e1938f1 Mon Sep 17 00:00:00 2001 From: byteful Date: Tue, 29 Sep 2026 21:27:57 -0400 Subject: [PATCH 2/2] preload org screen in console-app test --- apps/community-web/src/features/host/console-app.dom.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/community-web/src/features/host/console-app.dom.test.tsx b/apps/community-web/src/features/host/console-app.dom.test.tsx index b6bf8b73..f97a4ee6 100644 --- a/apps/community-web/src/features/host/console-app.dom.test.tsx +++ b/apps/community-web/src/features/host/console-app.dom.test.tsx @@ -12,6 +12,9 @@ import { renderConsole } from "@/components/console/__testing__/harness" import { useUiStore } from "@/store/ui-store" import { ConsoleApp } from "./console-app" import { ORG_INVITE_TOKEN_STASH_KEY } from "./org/org-invites" +// OrgScreen is the heaviest React.lazy screen; loading it cold inside a findBy window can outrun the +// 1 s default on a busy CI runner. Loading it here keeps each test independent of which ran first. +import "./org/org-screen" const ORG_ID = "11111111-1111-4111-8111-111111111111" const TOKEN = "abcdefghijklmnopqrstuvwxyz0123456789ABCD"