commit 194aadc762a862c5e80675b6b992ce50bed6cf43
parent 3c3fad02c41aa3978e7a6a7384fe4b1d5718cdf2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 21 Nov 2026 16:53:28 -0500
x-sittings review 1: the broker test stubs carry the auto-queue state path
Connect and Refresh now read X's stop (F9); two test stubs built Paths
without autoQueueStateFile and were refused (fail closed).
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/social/fakeXProfileBrowser.test.ts b/common/social/fakeXProfileBrowser.test.ts
@@ -46,7 +46,7 @@ test("the gate: test server, inside transcriptsDir, the file exists", async () =
test("refreshXCookies on the fake writes the jar from the fixture's cookies", async () => {
const root = await mkdtemp(path.join(os.tmpdir(), "fake-x-"));
try {
- const paths = { transcriptsDir: root } as Parameters<typeof refreshXCookies>[0];
+ const paths = { transcriptsDir: root, autoQueueStateFile: path.join(root, ".auto-queue", "state.json") } as Parameters<typeof refreshXCookies>[0];
await mkdir(path.join(root, ".x-session", "profile"), { recursive: true });
const file = path.join(root, ".fake-x-profile-cookies.json");
await writeFile(
@@ -70,7 +70,7 @@ test("refreshXCookies on the fake writes the jar from the fixture's cookies", as
test("connectXAccount on the fake: the window closes by itself, the login is exported; clearXSession forgets it", async () => {
const root = await mkdtemp(path.join(os.tmpdir(), "fake-x-"));
try {
- const paths = { transcriptsDir: root } as Parameters<typeof connectXAccount>[0];
+ const paths = { transcriptsDir: root, autoQueueStateFile: path.join(root, ".auto-queue", "state.json") } as Parameters<typeof connectXAccount>[0];
const file = path.join(root, ".fake-x-profile-cookies.json");
await writeFile(
file,
diff --git a/common/social/headedDisplay.test.ts b/common/social/headedDisplay.test.ts
@@ -437,7 +437,7 @@ test("a browser that opens no window (the e2e fake) needs no display", async ()
// --- each Connect passes the env ------------------------------------------------------------------
-const paths = (name: string) => ({ transcriptsDir: path.join(TMP, name) }) as unknown as Paths;
+const paths = (name: string) => ({ transcriptsDir: path.join(TMP, name), autoQueueStateFile: path.join(TMP, name, ".auto-queue", "state.json") }) as unknown as Paths;
test("Connect X account: the window gets the display, and the result says which", async () => {
const { chromium, launches } = stubChromium();