Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit ce72fb5

Browse files
committed
fix: update Announcement test for v3.53.0 release highlights
1 parent c02b9db commit ce72fb5

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

webview-ui/src/components/chat/__tests__/Announcement.spec.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ vi.mock("@src/utils/vscode", () => ({
1212

1313
vi.mock("@roo/package", () => ({
1414
Package: {
15-
version: "3.52.0",
15+
version: "3.53.0",
1616
},
1717
}))
1818

@@ -33,10 +33,13 @@ vi.mock("@src/i18n/TranslationContext", () => ({
3333
t: (key: string, options?: { version?: string }) => {
3434
const translations: Record<string, string> = {
3535
"chat:announcement.release.heading": "What's New:",
36-
"chat:announcement.release.gpt54":
37-
"Poe Provider: Added Poe as an AI provider so you can access Poe models directly in Roo Code.",
38-
"chat:announcement.release.slashSkills":
39-
"xAI and MiniMax Improvements: Migrated the xAI provider to the Responses API, added Grok-4.20 defaults, and fixed MiniMax model listings and context window handling for a more reliable setup.",
36+
"chat:announcement.release.gpt55":
37+
"GPT-5.5 via OpenAI Codex: Added GPT-5.5 support in the OpenAI Codex provider so you can use the latest model straight from Roo Code.",
38+
"chat:announcement.release.claudeOpus47":
39+
"Claude Opus 4.7 on Vertex AI: Added Claude Opus 4.7 to the Vertex AI provider for Anthropic's newest flagship reasoning model.",
40+
"chat:announcement.release.checkpointNav":
41+
"Previous Checkpoint Navigation: Added controls in chat to jump back through prior checkpoints, with full i18n support.",
42+
"chat:announcement.handoff.heading": "The Roo Code plugin is not going away.",
4043
}
4144

4245
if (key === "chat:announcement.title") {
@@ -49,25 +52,30 @@ vi.mock("@src/i18n/TranslationContext", () => ({
4952
}))
5053

5154
describe("Announcement", () => {
52-
it("renders the v3.52.0 announcement title and highlights", () => {
55+
it("renders the v3.53.0 announcement title and highlights", () => {
5356
render(<Announcement hideAnnouncement={vi.fn()} />)
5457

55-
expect(screen.getByText("Roo Code 3.52.0 Released")).toBeInTheDocument()
58+
expect(screen.getByText("Roo Code 3.53.0 Released")).toBeInTheDocument()
5659
expect(
5760
screen.getByText(
58-
"Poe Provider: Added Poe as an AI provider so you can access Poe models directly in Roo Code.",
61+
"GPT-5.5 via OpenAI Codex: Added GPT-5.5 support in the OpenAI Codex provider so you can use the latest model straight from Roo Code.",
5962
),
6063
).toBeInTheDocument()
6164
expect(
6265
screen.getByText(
63-
"xAI and MiniMax Improvements: Migrated the xAI provider to the Responses API, added Grok-4.20 defaults, and fixed MiniMax model listings and context window handling for a more reliable setup.",
66+
"Claude Opus 4.7 on Vertex AI: Added Claude Opus 4.7 to the Vertex AI provider for Anthropic's newest flagship reasoning model.",
67+
),
68+
).toBeInTheDocument()
69+
expect(
70+
screen.getByText(
71+
"Previous Checkpoint Navigation: Added controls in chat to jump back through prior checkpoints, with full i18n support.",
6472
),
6573
).toBeInTheDocument()
6674
})
6775

68-
it("renders exactly two release highlight bullets", () => {
76+
it("renders exactly three release highlight bullets", () => {
6977
render(<Announcement hideAnnouncement={vi.fn()} />)
7078

71-
expect(screen.getAllByRole("listitem")).toHaveLength(2)
79+
expect(screen.getAllByRole("listitem")).toHaveLength(3)
7280
})
7381
})

0 commit comments

Comments
 (0)