From 009022d04b2bf071e6a8e12ce5f61817e2a480b1 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Mon, 30 Mar 2026 20:12:41 +0300 Subject: [PATCH] fix(web-test): close DLB hint popup before paste fallback in fillReferenceField MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When DLB dropdown shows only a hint ("Введите строку для поиска...") without .eddText items, the code fell through without closing the popup. This left editDropDown covering the input field, causing Playwright to wait up to 30s for actionability on the next page.click(). Now we Escape the hint popup when eddState.visible=true but items are empty (34s → 5s on cold cache). Co-Authored-By: Claude Opus 4.6 (1M context) --- .claude/skills/web-test/scripts/browser.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.claude/skills/web-test/scripts/browser.mjs b/.claude/skills/web-test/scripts/browser.mjs index a06724df..d42e205c 100644 --- a/.claude/skills/web-test/scripts/browser.mjs +++ b/.claude/skills/web-test/scripts/browser.mjs @@ -1627,6 +1627,10 @@ async function fillReferenceField(selector, fieldName, value, formNum) { // No match in DLB dropdown — close and fall through to paste approach await page.keyboard.press('Escape'); await page.waitForTimeout(300); + } else if (eddState.visible) { + // DLB opened a hint popup (no .eddText items) — close it before proceeding + await page.keyboard.press('Escape'); + await page.waitForTimeout(300); } } } catch { /* DLB approach failed — fall through to paste */ }