Files
moreminimore-vibe/e2e-tests/new_chat.spec.ts
2025-06-02 22:35:55 -07:00

22 lines
568 B
TypeScript

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();
});
});