Deflake e2e tests (#316)
This commit is contained in:
@@ -99,7 +99,7 @@ class PageObject {
|
||||
async snapshotPreview() {
|
||||
const iframe = this.getPreviewIframeElement();
|
||||
await expect(iframe.contentFrame().locator("body")).toMatchAriaSnapshot({
|
||||
timeout: 15_000,
|
||||
timeout: 30_000,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,6 @@ test("create next.js app", async ({ po }) => {
|
||||
await po.clickRestart();
|
||||
|
||||
// This can be pretty slow because it's waiting for the app to build.
|
||||
await expect(po.getPreviewIframeElement()).toBeVisible({ timeout: 25_000 });
|
||||
await expect(po.getPreviewIframeElement()).toBeVisible({ timeout: 50_000 });
|
||||
await po.snapshotPreview();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user