Unverified 提交 81345153 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Deflake e2e tests (#316)

上级 5802c398
......@@ -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();
});
......@@ -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).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论