From afe760af4b82274997e93c5ee1ccd71db081c57a Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Fri, 27 Feb 2026 10:40:00 +0300 Subject: [PATCH] =?UTF-8?q?docs(web-test):=20fix=20hierarchical=20list=20?= =?UTF-8?q?=E2=80=94=20simple=20filterList=20works?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple filterList('text') works on hierarchical catalogs after the search input regex fix. No need to switch view mode. Co-Authored-By: Claude Opus 4.6 --- .claude/skills/web-test/SKILL.md | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.claude/skills/web-test/SKILL.md b/.claude/skills/web-test/SKILL.md index 934b0ad1..2032456a 100644 --- a/.claude/skills/web-test/SKILL.md +++ b/.claude/skills/web-test/SKILL.md @@ -166,32 +166,17 @@ Single `clickElement(text)` only selects the row. To open — always use `{dblcl ### Hierarchical lists (catalogs) -Simple search and `filterList(text, {field})` do NOT work on hierarchical catalogs — -they navigate the tree instead of filtering. For Контрагенты, Номенклатура, Сотрудники, etc. -switch to flat list mode first: +For hierarchical catalogs (Контрагенты, Номенклатура, Сотрудники, etc.) use simple +search — it works correctly and flattens the view: ```js -// 1. Detect: readTable returns `hierarchical: true` when rows have groups -const table = await readTable({ maxRows: 5 }); -if (table.hierarchical) { - // 2. Switch to flat mode via "Ещё" → "Режим просмотра" → "Список" - await clickElement('Еще'); - await clickElement('Режим просмотра'); - await clickElement('Список'); -} - -// 3. Now filterList works normally -await filterList('Конфетпром', { field: 'Наименование в программе' }); -// ...work with results... - -// 4. Clean up: switch back to hierarchical mode -await unfilterList(); -await clickElement('Еще'); -await clickElement('Режим просмотра'); -await clickElement('Иерархический список'); +await filterList('Конфетпром'); // simple search — works on hierarchical lists +await clickElement('Конфетпром ООО', { dblclick: true }); // open found item +await closeForm(); // close item +await unfilterList(); // restore hierarchical view ``` -Hint: if `readTable()` returns `hierarchical: true`, always switch to flat mode before filtering. +Hint: if `readTable()` returns `hierarchical: true`, the list has groups. ### Closing forms