Increase timeout for waiting for chat completion (#334)

This commit is contained in:
Will Chen
2025-06-04 14:03:36 -07:00
committed by GitHub
parent e91a9c44fa
commit 4e38031a65

View File

@@ -12,6 +12,7 @@ export const Timeout = {
// Why make this a constant? In some platforms, perhaps locally,
// we may want to shorten this.
LONG: os.platform() === "win32" ? 60_000 : 30_000,
MEDIUM: os.platform() === "win32" ? 30_000 : 15_000,
};
class PageObject {
@@ -178,7 +179,9 @@ class PageObject {
}
async waitForChatCompletion() {
await expect(this.getRetryButton()).toBeVisible();
await expect(this.getRetryButton()).toBeVisible({
timeout: Timeout.MEDIUM,
});
}
async clickRetry() {