mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-03 02:00:22 +03:00
fix(web-test): swap gridListH/V in isExpanded — hierarchy expand was inverted
gridListH = collapsed (▶), gridListV = expanded (▼). The old code had it backwards, so `expand: true` on a collapsed group was a no-op. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
1d89b3ec69
commit
66c6dc7aa1
@@ -1,4 +1,4 @@
|
||||
// web-test browser v1.6 — Playwright browser management for 1C web client
|
||||
// web-test browser v1.7 — Playwright browser management for 1C web client
|
||||
// Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
/**
|
||||
* Playwright browser management for 1C web client.
|
||||
@@ -2071,7 +2071,7 @@ export async function clickElement(text, { dblclick, table, toggle, expand, modi
|
||||
const icon = line.querySelector('.gridListH, .gridListV');
|
||||
if (icon) {
|
||||
const r = icon.getBoundingClientRect();
|
||||
const isExpanded = !!icon.classList.contains('gridListH');
|
||||
const isExpanded = !!icon.classList.contains('gridListV');
|
||||
return { x: Math.round(r.x + r.width / 2), y: Math.round(r.y + r.height / 2), isExpanded };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user