Skip to content

Commit a04df18

Browse files
committed
Add test to ensure that default model exists
1 parent 9f9673b commit a04df18

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {afterEach, beforeEach, expect, it} from "vitest";
2+
import {createAuthenticatedFixture, describeE2E, type SpawnedAgentFixture,} from "./acp-e2e-test-utils";
3+
import {ModelId} from "../../../ModelId";
4+
5+
const DEFAULT_MODEL_ID = ModelId.create("gpt-5.4-mini", "medium")
6+
7+
describeE2E("Models availability", () => {
8+
let fixture: SpawnedAgentFixture;
9+
10+
beforeEach(async () => {
11+
fixture = await createAuthenticatedFixture();
12+
});
13+
14+
afterEach(async () => {
15+
await fixture.dispose();
16+
});
17+
18+
it(`default model is available`, async () => {
19+
const session = await fixture.createSession();
20+
const models = session.models?.availableModels?.map(m => m.modelId);
21+
expect(models).toContain(DEFAULT_MODEL_ID.toString())
22+
});
23+
});

0 commit comments

Comments
 (0)