Skip to content

Commit e95251e

Browse files
committed
test: stabilize release verification and add patch changeset
1 parent b160a03 commit e95251e

6 files changed

Lines changed: 32 additions & 18 deletions

File tree

.changeset/few-turtles-teach.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@spencer-kit/coder-studio": patch
3+
---
4+
5+
Improve desktop workspace ergonomics by adding keyboard pane navigation,
6+
supporting workspace path drops into terminal sessions, and launching themed
7+
PTYs with terminal-aware background environment hints.

packages/web/src/features/diagnostics/index.test.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,13 @@ describe("DiagnosticsPage", () => {
469469
}
470470

471471
if (op === "session.create") {
472-
expect(args).toEqual({
473-
workspaceId: "ws-1",
474-
providerId: "claude",
475-
});
472+
expect(args).toEqual(
473+
expect.objectContaining({
474+
workspaceId: "ws-1",
475+
providerId: "claude",
476+
themeBackground: expect.stringMatching(/^#[0-9a-fA-F]{6,8}$/),
477+
})
478+
);
476479
return {
477480
id: "sess-1",
478481
workspaceId: "ws-1",

packages/web/src/features/terminal-panel/__tests__/xterm-host.test.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,12 +2021,14 @@ describe("XtermHost", () => {
20212021
).toBeInTheDocument();
20222022
expect(document.querySelector(".xterm-replay-overlay")).toBeTruthy();
20232023
expect(screen.queryByRole("button", { name: "重试恢复" })).not.toBeInTheDocument();
2024-
expect(mockTerminal.options).toEqual(
2025-
expect.objectContaining({
2026-
disableStdin: true,
2027-
cursorBlink: false,
2028-
})
2029-
);
2024+
await waitFor(() => {
2025+
expect(mockTerminal.options).toEqual(
2026+
expect.objectContaining({
2027+
disableStdin: true,
2028+
cursorBlink: false,
2029+
})
2030+
);
2031+
});
20302032
});
20312033

20322034
it("shows a degraded overlay when replay returns unknown so unavailable terminals do not stay loading", async () => {

packages/web/src/features/workspace/views/shared/worktree-modal.test.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,12 @@ describe("WorktreeModal", () => {
8888
});
8989

9090
expect(document.querySelector(".drawer-backdrop")).toBeTruthy();
91-
expect(document.querySelector(".mobile-sheet")).toBeNull();
9291
expect(screen.getByRole("dialog", { name: worktree.name })).toBeInTheDocument();
9392
expect(document.querySelector(".drawer-panel")).toBeTruthy();
9493
expect(document.querySelector(".modal-card-lg")).toBeNull();
95-
expect(screen.getByText("Latest Commit")).toBeInTheDocument();
96-
expect(screen.getByText("abc1234")).toBeInTheDocument();
97-
expect(screen.getByText("Initial mobile sheet setup")).toBeInTheDocument();
94+
expect(await screen.findByText("Latest Commit")).toBeInTheDocument();
95+
expect(await screen.findByText("abc1234")).toBeInTheDocument();
96+
expect(await screen.findByText("Initial mobile sheet setup")).toBeInTheDocument();
9897
expect(screen.getByRole("button", { name: "Close" })).toHaveClass("btn", "btn-ghost", "btn-sm");
9998
});
10099

@@ -145,7 +144,7 @@ describe("WorktreeModal", () => {
145144
expect(screen.getByRole("tablist", { name: "Worktree" })).toBeInTheDocument();
146145
expect(screen.getByRole("tab", { name: "Status" })).toHaveAttribute("aria-selected", "true");
147146
expect(screen.getByRole("tab", { name: "Status" })).toHaveClass("worktree-tab", "active");
148-
expect(screen.getByText("Latest Commit")).toBeInTheDocument();
147+
expect(await screen.findByText("Latest Commit")).toBeInTheDocument();
149148
});
150149

151150
it("does not render without an explicit workspace until the workspace list is ready", () => {

packages/web/src/ui-preview/build.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ describe("ui-preview build outputs", () => {
3636
});
3737

3838
expect(() => readFileSync(join(outDir, "ui-preview.html"), "utf8")).not.toThrow();
39-
}, 30_000);
39+
}, 60_000);
4040
});

packages/web/src/ui-preview/catalog.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ describe("UI preview catalog", () => {
161161
it("renders the mobile terminal showcase without the replay loading overlay", async () => {
162162
renderScene("mobile-terminal-sheet", "mobile");
163163

164+
expect(await screen.findByRole("button", { name: "New Terminal" })).toBeInTheDocument();
165+
expect(await screen.findByRole("button", { name: "Close Terminal" })).toBeInTheDocument();
164166
await waitFor(() => {
167+
expect(
168+
document.querySelector(".mobile-sheet--terminal .terminal-toolbar-mobile-row")
169+
).toBeTruthy();
165170
expect(screen.queryByText("Restoring terminal output...")).not.toBeInTheDocument();
166171
});
167172
expect(document.querySelector(".mobile-sheet--terminal")).toBeTruthy();
168-
expect(screen.getByRole("button", { name: "New Terminal" })).toBeInTheDocument();
169-
expect(screen.getByRole("button", { name: "Close Terminal" })).toBeInTheDocument();
170173
expect(
171174
document.querySelector(".mobile-sheet--terminal .terminal-toolbar-mobile-row")
172175
).toBeTruthy();

0 commit comments

Comments
 (0)