e2e tests for engine (#322)

This commit is contained in:
Will Chen
2025-06-03 16:11:16 -07:00
committed by GitHub
parent 7235eab227
commit fc1ebe9e8a
10 changed files with 956 additions and 165 deletions

View File

@@ -13,7 +13,7 @@ test("attach image - home chat", async ({ po }) => {
.locator("input[type='file']")
.setInputFiles("e2e-tests/fixtures/images/logo.png");
await po.sendPrompt("[dump]");
await po.snapshotServerDump({ onlyLastMessage: true });
await po.snapshotServerDump("last-message");
await po.snapshotMessages({ replaceDumpPath: true });
});
@@ -27,7 +27,7 @@ test("attach image - chat", async ({ po }) => {
.locator("input[type='file']")
.setInputFiles("e2e-tests/fixtures/images/logo.png");
await po.sendPrompt("[dump]");
await po.snapshotServerDump({ onlyLastMessage: true });
await po.snapshotServerDump("last-message");
await po.snapshotMessages({ replaceDumpPath: true });
});
@@ -65,6 +65,6 @@ test("attach image via drag - chat", async ({ po }) => {
// submit and verify
await po.sendPrompt("[dump]");
// Note: this should match EXACTLY the server dump from the previous test.
await po.snapshotServerDump({ onlyLastMessage: true });
await po.snapshotServerDump("last-message");
await po.snapshotMessages({ replaceDumpPath: true });
});