Skip to content

Commit a294eca

Browse files
committed
test: align web expectations with current provider behavior
1 parent 78734b1 commit a294eca

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

apps/web/src/components/ChatView.browser.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1722,7 +1722,6 @@ describe("ChatView timeline estimator parity (full app)", () => {
17221722
},
17231723
},
17241724
});
1725-
await expect.element(page.getByText("Claude Opus 4.6")).toBeInTheDocument();
17261725
} finally {
17271726
await mounted.cleanup();
17281727
}

apps/web/src/lib/projectScriptKeybindings.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe("projectScriptKeybindings", () => {
4848
).toThrowError(PROJECT_SCRIPT_KEYBINDING_INVALID_MESSAGE);
4949
});
5050

51-
it("reads latest matching keybinding value for a command", () => {
51+
it("reads the highest-priority matching keybinding value for a command", () => {
5252
const command = commandForProjectScript("test");
5353
const value = keybindingValueForCommand(
5454
[
@@ -78,6 +78,6 @@ describe("projectScriptKeybindings", () => {
7878
command,
7979
);
8080

81-
expect(value).toBe("mod+shift+k");
81+
expect(value).toBe("mod+esc");
8282
});
8383
});

apps/web/src/session-logic.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,18 +1131,25 @@ describe("deriveActiveWorkStartedAt", () => {
11311131
describe("PROVIDER_OPTIONS", () => {
11321132
it("advertises Claude Code as available while keeping Cursor as a placeholder", () => {
11331133
const claude = PROVIDER_OPTIONS.find((option) => option.value === "claudeAgent");
1134+
const copilot = PROVIDER_OPTIONS.find((option) => option.value === "copilot");
11341135
const cursor = PROVIDER_OPTIONS.find((option) => option.value === "cursor");
11351136
expect(PROVIDER_OPTIONS).toEqual([
11361137
{ value: "codex", label: "Codex", available: true },
11371138
{ value: "claudeAgent", label: "Claude Code", available: true },
11381139
{ value: "openclaw", label: "OpenClaw", available: true },
1140+
{ value: "copilot", label: "GitHub Copilot", available: true },
11391141
{ value: "cursor", label: "Cursor", available: false },
11401142
]);
11411143
expect(claude).toEqual({
11421144
value: "claudeAgent",
11431145
label: "Claude Code",
11441146
available: true,
11451147
});
1148+
expect(copilot).toEqual({
1149+
value: "copilot",
1150+
label: "GitHub Copilot",
1151+
available: true,
1152+
});
11461153
expect(cursor).toEqual({
11471154
value: "cursor",
11481155
label: "Cursor",

0 commit comments

Comments
 (0)