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:
@@ -16,7 +16,7 @@ describe("buildNewAgentRoute", () => {
|
|||||||
|
|
||||||
it("encodes the working directory as a workspace path segment", () => {
|
it("encodes the working directory as a workspace path segment", () => {
|
||||||
expect(buildNewAgentRoute("srv-1", "/Users/me/dev/paseo")).toBe(
|
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 },
|
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";
|
const key = "server-1:/repo/worktree";
|
||||||
expect(useWorkspaceLayoutStore.getState().getWorkspaceTabs(key)).toHaveLength(1);
|
expect(useWorkspaceLayoutStore.getState().getWorkspaceTabs(key)).toHaveLength(1);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user