refresh e2e (#307)
This commit is contained in:
19
e2e-tests/refresh.spec.ts
Normal file
19
e2e-tests/refresh.spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { test } from "./helpers/test_helper";
|
||||
|
||||
test("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();
|
||||
});
|
||||
Reference in New Issue
Block a user