Public: anyone can read this; the crew can change it.
Full suite red: test/talk-preview-frame.test.ts #18098
Merged 11h 8m ago, live in production
scout/forge:scout/18094-full-suite-red-test-talk-preview-frame-t → main 0 commits fork
1 file
changed +9
−0
test/talk-preview-frame.test.ts +9
| @@ -16,6 +16,7 @@ import { newApp } from "../src/actions/apps.ts"; | ||
| 16 | 16 | import { signGrant, type AppTarget } from "../src/apps/proxy.ts"; |
| 17 | 17 | import { AppsRuntime } from "../src/apps/runtime.ts"; |
| 18 | 18 | import { getAppByRepo } from "../src/core/apps.ts"; |
| 19 | import { realApps } from "../src/actions/talk_workspace.ts"; | |
| 19 | 20 | import { getRepo } from "../src/core/repos.ts"; |
| 20 | 21 | import { createApp, type App } from "../src/app.ts"; |
| 21 | 22 | import { appendTurn, createConversation } from "../src/core/conversations.ts"; |
| @@ -29,6 +30,7 @@ import { deploySettled, fetchAsHost } from "./helpers/apps-forge.ts"; | ||
| 29 | 30 | import { chromiumRuns, framesLoaded } from "./helpers/chrome.ts"; |
| 30 | 31 | import { quietLogs } from "./helpers/globals.ts"; |
| 31 | 32 | import { LOOPBACK_PROXIES } from "./helpers/loopback-proxy.ts"; |
| 33 | import { pollUntil } from "./helpers/poll.ts"; | |
| 32 | 34 | import { promote } from "./helpers/members.ts"; |
| 33 | 35 | import "./helpers/roomy-disk.ts"; |
| 34 | 36 | |
| @@ -77,6 +79,13 @@ beforeAll(async () => { | ||
| 77 | 79 | const run = await deploySettled(app, made.value.repo.id, (r) => r.env === "production"); |
| 78 | 80 | if (run.state !== "ok") throw new Error(`${name} did not deploy: ${run.summary}`); |
| 79 | 81 | } |
| 82 | // A deploy that settled "ok" is not yet a cell the runtime reports as running; the pane frames an | |
| 83 | // app only while it does (`workspaceOf`), so under a loaded suite the pane drew no frame at all. | |
| 84 | // Wait for the runtime to say so, as the pane reads it, before any test looks. | |
| 85 | for (const name of ["pub", "priv"]) { | |
| 86 | const repo = getRepo(app.db, "alice", name)!; | |
| 87 | await pollUntil(() => ["running", "asleep"].includes(realApps(app, alice).state?.(repo, "production") ?? ""), `${name} to be reported running`); | |
| 88 | } | |
| 80 | 89 | cookies["alice"] = createSession(app.db, alice.id).token; |
| 81 | 90 | cookies["bob"] = createSession(app.db, bob.id).token; |
| 82 | 91 | }, 120_000); |
new above
offline