From cce00a4def711cb573beb3cd8a32112ae00a13d0 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Fri, 27 Mar 2026 11:42:38 +0300 Subject: [PATCH] =?UTF-8?q?fix(web-test):=20clickElement=20=E2=80=94=20pau?= =?UTF-8?q?se=20before=20auto-clicking=20confirmation=20during=20recording?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When video recording is active, wait 1.5s before clicking confirmation dialog buttons so viewers can see the dialog in the video. Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/skills/web-test/scripts/browser.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/.claude/skills/web-test/scripts/browser.mjs b/.claude/skills/web-test/scripts/browser.mjs index f9cf6152..6cd5dc32 100644 --- a/.claude/skills/web-test/scripts/browser.mjs +++ b/.claude/skills/web-test/scripts/browser.mjs @@ -1939,6 +1939,7 @@ export async function clickElement(text, { dblclick, table, toggle, expand, time return { error: 'not_found', available: btns.map(el => norm(el.innerText)).filter(Boolean) }; })()`); if (btnResult?.error) throw new Error(`clickElement: "${text}" not found among confirmation buttons. Available: ${btnResult.available?.join(', ') || 'none'}`); + if (recorder) await page.waitForTimeout(1500); // show confirmation dialog to viewer during recording await page.mouse.click(btnResult.x, btnResult.y); await waitForStable(); const state = await getFormState();