From 61921022a1c5b52fd8299c80d44d2fdf01fca38c Mon Sep 17 00:00:00 2001 From: xuans Date: Fri, 18 Sep 2026 22:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=8C=E6=95=B4=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=8E=E6=96=AD=E7=BD=91=E6=85=A2=E6=94=BE=E7=9A=84?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/verify-full.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/verify-full.js b/scripts/verify-full.js index 36f7f39..66f9ea9 100644 --- a/scripts/verify-full.js +++ b/scripts/verify-full.js @@ -37,7 +37,14 @@ try { await page.locator("#layer").fill("300"); await page.locator("#slow-layer").click(); const previous = await page.locator("#timeline").inputValue(); - await page.waitForTimeout(800); + const previousPosition = await page.locator('#command-position').textContent(); + await page.waitForFunction( + ({ previous, previousPosition }) => + document.querySelector('#timeline').value !== previous && + document.querySelector('#command-position').textContent !== previousPosition, + { previous, previousPosition }, + { timeout: 15000 }, + ); assert.notEqual(await page.locator("#timeline").inputValue(), previous); await page.locator('[data-technology="nozzle"]').click(); await page.locator("#disassemble").click();