Add project files

This commit is contained in:
Kunthawat Greethong
2025-12-05 09:26:53 +07:00
parent 3b43cb52ef
commit 11986a0196
814 changed files with 141076 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
import { testSkipIfWindows } from "./helpers/test_helper";
testSkipIfWindows("context window", async ({ po }) => {
await po.setUp();
await po.sendPrompt("tc=1");
await po.sendPrompt("tc=2");
await po.sendPrompt("[dump] tc=3");
await po.snapshotServerDump();
await po.sendPrompt("[dump] tc=4");
await po.snapshotServerDump();
await po.sendPrompt("[dump] tc=5");
await po.snapshotServerDump();
await po.goToSettingsTab();
await po.page
.getByRole("combobox", { name: "Maximum number of chat turns" })
.click();
await po.page.getByRole("option", { name: "Plus (5)" }).click();
// close combobox
// await po.page.keyboard.press("Escape");
await po.snapshotSettings();
await po.page.getByText("Go Back").click();
await po.sendPrompt("[dump] tc=6");
await po.snapshotServerDump();
});