build ask mode (#444)

This commit is contained in:
Will Chen
2025-06-19 10:42:51 -07:00
committed by GitHub
parent 8464609ba8
commit 9fbd7031d9
28 changed files with 1098 additions and 27 deletions

View File

@@ -0,0 +1,24 @@
import { test } from "./helpers/test_helper";
test("chat mode selector - default build mode", async ({ po }) => {
await po.setUp({ autoApprove: true });
await po.importApp("minimal");
await po.sendPrompt("[dump] hi");
await po.waitForChatCompletion();
await po.snapshotServerDump("all-messages");
await po.snapshotMessages({ replaceDumpPath: true });
});
test("chat mode selector - ask mode", async ({ po }) => {
await po.setUp({ autoApprove: true });
await po.importApp("minimal");
await po.selectChatMode("ask");
await po.sendPrompt("[dump] hi");
await po.waitForChatCompletion();
await po.snapshotServerDump("all-messages");
await po.snapshotMessages({ replaceDumpPath: true });
});