Restart e2e test (#306)

This commit is contained in:
Will Chen
2025-06-02 15:20:35 -07:00
committed by GitHub
parent ada1542e34
commit 46d398b4e9
3 changed files with 29 additions and 1 deletions

15
e2e-tests/restart.spec.ts Normal file
View File

@@ -0,0 +1,15 @@
import { test } from "./helpers/test_helper";
import { expect } from "@playwright/test";
test("restart app", async ({ po }) => {
await po.setUp({ autoApprove: true });
await po.sendPrompt("hi");
await po.clickRestart();
await expect(po.locateLoadingAppPreview()).toBeVisible();
await expect(po.locateLoadingAppPreview()).not.toBeVisible({
timeout: 15_000,
});
await po.snapshotPreview();
});