diff --git a/e2e-tests/helpers/test_helper.ts b/e2e-tests/helpers/test_helper.ts index 5ab55fc..cf41a69 100644 --- a/e2e-tests/helpers/test_helper.ts +++ b/e2e-tests/helpers/test_helper.ts @@ -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, }); } diff --git a/e2e-tests/template-create-nextjs.spec.ts b/e2e-tests/template-create-nextjs.spec.ts index 3e144ba..a23d2f6 100644 --- a/e2e-tests/template-create-nextjs.spec.ts +++ b/e2e-tests/template-create-nextjs.spec.ts @@ -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(); }); diff --git a/playwright.config.ts b/playwright.config.ts index 519e6f7..7c4c0a1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,7 +5,7 @@ const config: PlaywrightTestConfig = { workers: 1, retries: process.env.CI ? 1 : 0, // maxFailures: 1, - timeout: process.env.CI ? 60_000 : 30_000, + timeout: process.env.CI ? 75_000 : 30_000, // Use a custom snapshot path template because Playwright's default // is platform-specific which isn't necessary for Dyad e2e tests // which should be platform agnostic (we don't do screenshots; only textual diffs).