fix(app): update route test expectations for b64_ workspace ID prefix

The opaque-workspace-identifier refactor (e6044264) added a `b64_` prefix
to base64-encoded workspace IDs in route builders. Two app tests still
expected the unprefixed form and failed in CI.
This commit is contained in:
Mohamed Boudra
2026-04-16 19:51:00 +07:00
parent 53ed34bacf
commit 6ffffc38a0
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ describe("buildNewAgentRoute", () => {
it("encodes the working directory as a workspace path segment", () => {
expect(buildNewAgentRoute("srv-1", "/Users/me/dev/paseo")).toBe(
"/h/srv-1/workspace/L1VzZXJzL21lL2Rldi9wYXNlbw",
"/h/srv-1/workspace/b64_L1VzZXJzL21lL2Rldi9wYXNlbw",
);
});
});
@@ -46,7 +46,7 @@ describe("prepareWorkspaceTab", () => {
target: { kind: "agent", agentId: AGENT_ID },
});
expect(route).toBe("/h/server-1/workspace/L3JlcG8vd29ya3RyZWU");
expect(route).toBe("/h/server-1/workspace/b64_L3JlcG8vd29ya3RyZWU");
const key = "server-1:/repo/worktree";
expect(useWorkspaceLayoutStore.getState().getWorkspaceTabs(key)).toHaveLength(1);
});