Create tests: dumps message, "retry" (#281)

This commit is contained in:
Will Chen
2025-05-31 21:15:41 -07:00
committed by GitHub
parent 304b3f7f01
commit efb814ec95
10 changed files with 1605 additions and 60 deletions

View File

@@ -1,21 +1,13 @@
import { expect } from "@playwright/test";
import { test } from "./helpers/test_helper";
test("renders the first page", async ({ electronApp }) => {
const page = await electronApp.firstWindow();
await page.waitForSelector("h1");
const text = await page.$eval("h1", (el) => el.textContent);
expect(text).toBe("Build your dream app");
});
test("simple message to custom test model", async ({ po }) => {
await po.setUp();
await po.sendPrompt("hi");
await po.dumpMessages();
await po.snapshotMessages();
});
test("basic message to custom test model", async ({ po }) => {
await po.setUp();
await po.sendPrompt("tc=basic");
await po.dumpMessages();
await po.snapshotMessages();
});