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