Files
moreminimore-vibe/e2e-tests/engine.spec.ts
Will Chen 91e8d0c0cd Add Opus 4.5 and clean-up naming & remove legacy models for anthropic (#1892)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) is
generating a summary for commit
fb0aff0bf5e21e1b57bc8744ed9643b863b888d4. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds support for Anthropic Claude Opus 4.5 and standardizes Sonnet
naming. Removes legacy 3.x Anthropic models and updates tests to use the
new names.

- **New Features**
  - Added "Claude Opus 4.5" with 32k max output and 200k context.

- **Migration**
- Names standardized to "Claude Sonnet 4" and "Claude Sonnet 4.5".
Update any model selections and tests.
- Removed Anthropic 3.x models: Claude 3.7 Sonnet, Claude 3.5 Sonnet,
Claude 3.5 Haiku, and their Bedrock variants.

<sup>Written for commit fb0aff0bf5e21e1b57bc8744ed9643b863b888d4.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-04 23:01:49 -08:00

61 lines
1.8 KiB
TypeScript

import { testSkipIfWindows } from "./helpers/test_helper";
testSkipIfWindows("send message to engine", async ({ po }) => {
await po.setUpDyadPro();
await po.selectModel({ provider: "Google", model: "Gemini 2.5 Pro" });
await po.sendPrompt("[dump] tc=turbo-edits");
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
});
testSkipIfWindows("send message to engine - openai gpt-5", async ({ po }) => {
await po.setUpDyadPro();
// By default, it's using auto which points to Flash 2.5 and doesn't
// use engine.
await po.selectModel({ provider: "OpenAI", model: "GPT 5" });
await po.sendPrompt("[dump] tc=turbo-edits");
await po.snapshotServerDump("request");
});
testSkipIfWindows(
"send message to engine - anthropic claude sonnet 4",
async ({ po }) => {
await po.setUpDyadPro();
// By default, it's using auto which points to Flash 2.5 and doesn't
// use engine.
await po.selectModel({ provider: "Anthropic", model: "Claude Sonnet 4" });
await po.sendPrompt("[dump] tc=turbo-edits");
await po.snapshotServerDump("request");
},
);
testSkipIfWindows(
"smart auto should send message to engine",
async ({ po }) => {
await po.setUpDyadPro();
await po.sendPrompt("[dump] tc=turbo-edits");
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
},
);
testSkipIfWindows(
"regular auto should send message to engine",
async ({ po }) => {
await po.setUpDyadPro();
const proModesDialog = await po.openProModesDialog({
location: "home-chat-input-container",
});
await proModesDialog.setSmartContextMode("off");
await proModesDialog.close();
await po.sendPrompt("[dump] tc=turbo-edits");
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
},
);