From 597098a4768c176fc7807e640b33d90a95878f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BA=81=E5=8A=A8=E7=9A=84=E6=B0=A8=E6=B0=94?= <131591012+zaodonganqi@users.noreply.github.com> Date: Tue, 3 Mar 2026 21:54:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BB=B6=E9=95=BF=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E9=BB=98=E8=AE=A4=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=20(#2955)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 延长工具函数默认超时时间 * feat: 延长工具函数默认超时时间 --- packages/utils/tool.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/utils/tool.js b/packages/utils/tool.js index 96e92a03f..80999ab7c 100644 --- a/packages/utils/tool.js +++ b/packages/utils/tool.js @@ -274,7 +274,7 @@ async function waitUntilImgAppear( y = 0, w = 1920, h = 1080, - timeout = 5000, + timeout = 10000, interval = 50 ) { const start = Date.now(); @@ -312,7 +312,7 @@ async function waitUntilImgDisappear( y = 0, w = 1920, h = 1080, - timeout = 5000, + timeout = 10000, interval = 50 ) { const start = Date.now(); @@ -350,7 +350,7 @@ async function waitUntilTextAppear( y = 0, w = 1920, h = 1080, - attempts = 5, + attempts = 100, interval = 50 ) { const start = Date.now(); @@ -389,7 +389,7 @@ async function waitUntilTextDisappear( y = 0, w = 1920, h = 1080, - attempts = 5, + attempts = 100, interval = 50 ) { const start = Date.now();