Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(spaces-web): expect the bridge's own drop line when the core is not built (CUA-3240) (#6430)

injaneityd128d4aab0b1
diff --git a/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts b/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts
index bf1d9d86b0..0b4cfc0721 100644
--- a/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts
+++ b/apps/cua-spaces-web/src/bridge/__tests__/detail.test.ts
@@ -257,7 +257,8 @@ describe("a Space's drop well", () => {
const seen: string[] = [];
await sendFiles(demo, core, "local:design-review", ["/Users/ada/notes.txt"], (s) => seen.push(`${s?.kind}: ${s?.text}`));
expect(seen[0]).toMatch(/^working: Sending notes\.txt/);
- expect(seen[1]).toMatch(/^done: notes\.txt .* verified in /);
+ // The core words what landed; without it the bridge names the files.
+ expect(seen[1]).toMatch(wasmBuilt ? /^done: notes\.txt .* verified in / : /^done: notes\.txt$/);
seen.length = 0;
await sendFiles(demo, core, "local:agent-sandbox", ["/Users/ada/notes.txt"], (s) => seen.push(s!.kind));
expect(seen).toEqual(["working", "failed"]);