Files
moreminimore-vibe/e2e-tests/refresh.spec.ts
Kunthawat Greethong 11986a0196 Add project files
2025-12-05 09:26:53 +07:00

20 lines
476 B
TypeScript

import { testSkipIfWindows } from "./helpers/test_helper";
testSkipIfWindows("refresh app", async ({ po }) => {
await po.setUp({ autoApprove: true });
await po.sendPrompt("hi");
// Drop the document.body inside the contentFrame to make
// sure refresh works.
await po
.getPreviewIframeElement()
.contentFrame()
.locator("body")
.evaluate((body) => {
body.remove();
});
await po.clickPreviewRefresh();
await po.snapshotPreview();
});