From c3c993f7f13361157d17d0e85a57019d893f573d Mon Sep 17 00:00:00 2001 From: Alex Holmberg <113964069+Alex793x@users.noreply.github.com> Date: Mon, 23 Nov 2026 16:55:33 +0100 Subject: [PATCH 1/2] test: pass the sharing and Mac signing tests on Windows [skip ci] Two tests assumed they run on a Mac. On Windows: - The "Mac" in the two-computer sharing test runs in the same process, so it names itself after the test host's platform and the follow-up reads "Queued on your Windows". The test now expects that name. - The list of Mac libraries to sign came back with backslashes. The test now compares forward-slash paths. Neither change touches the app. Co-Authored-By: Claude Opus 5.5 --- tests/macos-release-trust.test.ts | 4 +++- tests/sharing-runtime.test.ts | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/macos-release-trust.test.ts b/tests/macos-release-trust.test.ts index 7a35976..446e7ed 100644 --- a/tests/macos-release-trust.test.ts +++ b/tests/macos-release-trust.test.ts @@ -185,7 +185,9 @@ test("public packaging signs the native libraries bundled beside the app, which await place("dist-desktop-runtime/node", macho); await place("src-tauri/target/release/memcode", macho); assert.deepEqual( - (await bundledLibrariesToSign(root)).map((path: string) => path.slice(root.length + 1)).sort(), + (await bundledLibrariesToSign(root)) + .map((path: string) => path.slice(root.length + 1).replaceAll("\\", "/")) + .sort(), [`${onnx}/libonnxruntime.1.23.2.dylib`, `${onnx}/onnxruntime_binding.node`], ); } finally { diff --git a/tests/sharing-runtime.test.ts b/tests/sharing-runtime.test.ts index 3607bd2..e9e461a 100644 --- a/tests/sharing-runtime.test.ts +++ b/tests/sharing-runtime.test.ts @@ -690,11 +690,19 @@ test("a worker run on the Mac is on the PC's card when it is opened there, and a onMac.messages.find((message) => message.id === messageId)!.actor?.name, mac.me.name, ); + // Both computers run in this one process, so the "Mac" names itself after + // the platform the test runs on. + const macDevice = + process.platform === "win32" + ? "Windows" + : process.platform === "darwin" + ? "Mac" + : "Linux"; await until( () => onPc().sharedSession?.messages.find( (message) => message.id === messageId, - )?.deliveryLine === "Queued on your Mac", + )?.deliveryLine === `Queued on your ${macDevice}`, "the PC to see it queued on the Mac", ); // Nothing runs on the PC: its own task holds no new turn. From 257871728632ce9d3e0a049e46a17d757ddc2005 Mon Sep 17 00:00:00 2001 From: Alex Holmberg <113964069+Alex793x@users.noreply.github.com> Date: Mon, 23 Nov 2026 17:07:02 +0100 Subject: [PATCH 2/2] test: close the first-run welcome in the native browser smoke [skip ci] A fresh profile opens on the welcome dialog, which covered the Workspace button, so the smoke stopped before it reached the card's Browser tab. Close it the way tauri-smoke.mjs does. Co-Authored-By: Claude Opus 5.5 --- scripts/native-browser-smoke.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/native-browser-smoke.mjs b/scripts/native-browser-smoke.mjs index 47df72c..4c7a4f9 100644 --- a/scripts/native-browser-smoke.mjs +++ b/scripts/native-browser-smoke.mjs @@ -66,6 +66,14 @@ try { } assert.ok(main, "Native main page did not load: " + diagnostics); await main.waitForFunction(() => !!window.memcode); + // A fresh profile opens on the welcome. Close it, as tauri-smoke.mjs does. + const loaded = await main.evaluate(() => window.memcode.load()); + const onboarding = (loaded?.state ?? loaded)?.onboarding; + if (!onboarding || (onboarding.step === "welcome" && !onboarding.dismissed)) { + const skip = main.getByRole("button", { name: "Skip for now", exact: true }); + await expect(skip).toBeVisible(); + await skip.click(); + } await main.evaluate(() => window.memcode.selectProject("example")); await main.getByRole("button", { name: "Workspace", exact: true }).click(); await main