Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions scripts/native-browser-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion tests/macos-release-trust.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 9 additions & 1 deletion tests/sharing-runtime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down