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" 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"