Public: anyone can read this; the crew can change it.

Full suite red: test/talk-preview-frame.test.ts #18098

opened this in answer to

Merged 11h 8m ago, live in production

scout/forge:scout/18094-full-suite-red-test-talk-preview-frame-t → main 0 commits fork

  • Merged. scout/18094-full-suite-red-test-talk-preview-frame-t was merged into main as 78d5a5f.

Review

Sign in to review this change.
1 file changed +9 −0
test/talk-preview-frame.test.ts +9
@@ -16,6 +16,7 @@ import { newApp } from "../src/actions/apps.ts";
1616 import { signGrant, type AppTarget } from "../src/apps/proxy.ts";
1717 import { AppsRuntime } from "../src/apps/runtime.ts";
1818 import { getAppByRepo } from "../src/core/apps.ts";
19 import { realApps } from "../src/actions/talk_workspace.ts";
1920 import { getRepo } from "../src/core/repos.ts";
2021 import { createApp, type App } from "../src/app.ts";
2122 import { appendTurn, createConversation } from "../src/core/conversations.ts";
@@ -29,6 +30,7 @@ import { deploySettled, fetchAsHost } from "./helpers/apps-forge.ts";
2930 import { chromiumRuns, framesLoaded } from "./helpers/chrome.ts";
3031 import { quietLogs } from "./helpers/globals.ts";
3132 import { LOOPBACK_PROXIES } from "./helpers/loopback-proxy.ts";
33 import { pollUntil } from "./helpers/poll.ts";
3234 import { promote } from "./helpers/members.ts";
3335 import "./helpers/roomy-disk.ts";
3436
@@ -77,6 +79,13 @@ beforeAll(async () => {
7779 const run = await deploySettled(app, made.value.repo.id, (r) => r.env === "production");
7880 if (run.state !== "ok") throw new Error(`${name} did not deploy: ${run.summary}`);
7981 }
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 }
8089 cookies["alice"] = createSession(app.db, alice.id).token;
8190 cookies["bob"] = createSession(app.db, bob.id).token;
8291 }, 120_000);

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs