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

13
e2e-tests/retry.spec.ts Normal file
View File

@@ -0,0 +1,13 @@
import { test } from "./helpers/test_helper";
test("retry - should work", async ({ po }) => {
await po.setUp();
await po.sendPrompt("[increment]");
await po.snapshotMessages();
await po.dismissAllToasts();
await po.clickRetry();
await po.expectNoToast();
// The counter should be incremented in the snapshotted messages.
await po.snapshotMessages();
});