Increase timeout for waiting for chat completion (#334)
This commit is contained in:
@@ -12,6 +12,7 @@ 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: os.platform() === "win32" ? 60_000 : 30_000,
|
LONG: os.platform() === "win32" ? 60_000 : 30_000,
|
||||||
|
MEDIUM: os.platform() === "win32" ? 30_000 : 15_000,
|
||||||
};
|
};
|
||||||
|
|
||||||
class PageObject {
|
class PageObject {
|
||||||
@@ -178,7 +179,9 @@ class PageObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async waitForChatCompletion() {
|
async waitForChatCompletion() {
|
||||||
await expect(this.getRetryButton()).toBeVisible();
|
await expect(this.getRetryButton()).toBeVisible({
|
||||||
|
timeout: Timeout.MEDIUM,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickRetry() {
|
async clickRetry() {
|
||||||
|
|||||||
Reference in New Issue
Block a user