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,21 @@
import { test } from "./helpers/test_helper";
const newChatTestCases = [
{ name: "first button", clickOptions: undefined },
{ name: "second button", clickOptions: { index: 1 } },
];
newChatTestCases.forEach(({ name, clickOptions }) => {
test(`new chat (${name})`, async ({ po }) => {
await po.setUp();
await po.sendPrompt("tc=chat1");
await po.snapshotMessages();
await po.clickNewChat(clickOptions);
// Make sure it's empty
await po.snapshotMessages();
await po.sendPrompt("tc=chat2");
await po.snapshotMessages();
});
});