mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 00:44:57 +03:00
perf(web-test): detect .confirm notification for early exit in clickElement
Add .confirm CSS selector to the server-response waitForSelector in clickElement. 1C web client shows notifications (Изменение/Проведение) as .confirm elements after write/post operations. This allows early exit instead of waiting the full 10s timeout. Записать: 14s → 2.6s. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1500,7 +1500,7 @@ export async function clickElement(text, { dblclick } = {}) {
|
||||
// waitForSelector uses MutationObserver internally — doesn't block event loop.
|
||||
try {
|
||||
await page.waitForSelector(
|
||||
'#modalSurface:not([style*="display: none"]), .balloon',
|
||||
'#modalSurface:not([style*="display: none"]), .balloon, .confirm',
|
||||
{ state: 'visible', timeout: 10000 }
|
||||
);
|
||||
} catch {}
|
||||
|
||||
Reference in New Issue
Block a user