Attempt to improve Windows E2E reliability(#331)
This commit is contained in:
@@ -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 = {
|
|||||||
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 =
|
|||||||
},
|
},
|
||||||
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}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user