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

Attempt to improve Windows E2E reliability(#331)

上级 2ba22e83
...@@ -11,7 +11,7 @@ const showDebugLogs = process.env.DEBUG_LOGS === "true"; ...@@ -11,7 +11,7 @@ const showDebugLogs = process.env.DEBUG_LOGS === "true";
export const Timeout = { export const Timeout = {
// Why make this a constant? In some platforms, perhaps locally, // Why make this a constant? In some platforms, perhaps locally,
// we may want to shorten this. // we may want to shorten this.
LONG: 30_000, LONG: os.platform() === "win32" ? 60_000 : 30_000,
}; };
class PageObject { class PageObject {
......
...@@ -5,7 +5,7 @@ const config: PlaywrightTestConfig = { ...@@ -5,7 +5,7 @@ const config: PlaywrightTestConfig = {
workers: 1, workers: 1,
retries: process.env.CI ? 1 : 0, retries: process.env.CI ? 1 : 0,
// maxFailures: 1, // maxFailures: 1,
timeout: process.env.CI ? 75_000 : 30_000, timeout: process.env.CI ? 120_000 : 30_000,
// Use a custom snapshot path template because Playwright's default // Use a custom snapshot path template because Playwright's default
// is platform-specific which isn't necessary for Dyad e2e tests // is platform-specific which isn't necessary for Dyad e2e tests
// which should be platform agnostic (we don't do screenshots; only textual diffs). // which should be platform agnostic (we don't do screenshots; only textual diffs).
......
...@@ -55,7 +55,7 @@ export const createChatCompletionHandler = ...@@ -55,7 +55,7 @@ export const createChatCompletionHandler =
}, },
null, null,
2, 2,
), ).replace(/\r\n/g, "\n"),
"utf-8", "utf-8",
); );
console.log(`* Dumped messages to: ${dumpFilePath}`); console.log(`* Dumped messages to: ${dumpFilePath}`);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论