Attempt to improve Windows E2E reliability(#331)

This commit is contained in:
Will Chen
2025-06-04 07:42:00 -07:00
committed by GitHub
parent 2ba22e83e7
commit 69b0e7aba2
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ const showDebugLogs = process.env.DEBUG_LOGS === "true";
export const Timeout = {
// Why make this a constant? In some platforms, perhaps locally,
// we may want to shorten this.
LONG: 30_000,
LONG: os.platform() === "win32" ? 60_000 : 30_000,
};
class PageObject {

View File

@@ -5,7 +5,7 @@ const config: PlaywrightTestConfig = {
workers: 1,
retries: process.env.CI ? 1 : 0,
// 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
// is platform-specific which isn't necessary for Dyad e2e tests
// which should be platform agnostic (we don't do screenshots; only textual diffs).

View File

@@ -55,7 +55,7 @@ export const createChatCompletionHandler =
},
null,
2,
),
).replace(/\r\n/g, "\n"),
"utf-8",
);
console.log(`* Dumped messages to: ${dumpFilePath}`);