Unverified 提交 4e38031a authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Increase timeout for waiting for chat completion (#334)

上级 e91a9c44
......@@ -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() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论