Gateway e2e (#323)

This commit is contained in:
Will Chen
2025-06-03 16:35:46 -07:00
committed by GitHub
parent fc1ebe9e8a
commit c227a08d11
14 changed files with 104 additions and 410 deletions

View File

@@ -10,3 +10,21 @@ test("send message to engine", async ({ po }) => {
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
});
test("send message to gateway", async ({ po }) => {
await po.setUpDyadPro();
await po.selectModel({ provider: "Google", model: "Gemini 2.5 Flash" });
await po.sendPrompt("[dump] tc=gateway-simple");
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
});
// auto (defaults to Gemini 2.5 Flash)
test("auto should send message to gateway", async ({ po }) => {
await po.setUpDyadPro();
await po.sendPrompt("[dump] tc=gateway-simple");
await po.snapshotServerDump("request");
await po.snapshotMessages({ replaceDumpPath: true });
});