From d982c5082a25403f5aedd9540c2af5f9a3a0964c Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Fri, 27 Mar 2026 12:39:15 +0300 Subject: [PATCH] =?UTF-8?q?fix(web-test):=20closeForm=20=E2=80=94=20pause?= =?UTF-8?q?=20before=20auto-clicking=20confirmation=20during=20recording?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same 1.5s pause as in clickElement for confirmation dialogs when video recording is active. Applies when closeForm({ save: true/false }) auto-clicks the confirmation button. 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 6cd5dc32..db3f9c68 100644 --- a/.claude/skills/web-test/scripts/browser.mjs +++ b/.claude/skills/web-test/scripts/browser.mjs @@ -2275,6 +2275,7 @@ export async function closeForm({ save } = {}) { for (const b of btns) { const txt = (await b.textContent()).trim(); if (txt === label) { + if (recorder) await page.waitForTimeout(1500); // show confirmation to viewer during recording await b.click({ force: true }); await waitForStable(beforeForm); break;