From 619fd77faeb82e196f42ca8fa2f639fd5f512991 Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sun, 28 Jun 2026 20:24:32 +0300 Subject: [PATCH] =?UTF-8?q?docs(web-test):=20=D1=81=D0=B6=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BC=D1=83=D0=BB=D1=8C=D1=82=D0=B8=D0=B2=D1=8B=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=B0=20selectValue=20=D0=B2=20SKILL.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Убрано перечисление 4 внутренних поверхностей и «auto-detected gesture» — протекающая реализация, модели не нужна. Оставлено только то, что нужно вызывающей модели: массив → мультивыбор, replace, форма возврата (values/notSelected), формы элементов. Co-Authored-By: Claude Opus 4.8 (1M context) --- .claude/skills/web-test/SKILL.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.claude/skills/web-test/SKILL.md b/.claude/skills/web-test/SKILL.md index d81826e9..e587f5ce 100644 --- a/.claude/skills/web-test/SKILL.md +++ b/.claude/skills/web-test/SKILL.md @@ -340,21 +340,14 @@ await selectValue('Документ', '0000-000601', { type: 'Реализаци Also supports DCS labels — auto-enables the paired checkbox. -**Multi-select (value-list fields)** — pass an **array** to select several values at once. Works -across all "список значений" surfaces (checkbox form, intermediate pool + Подбор, inline cloud -dropdown, catalog multi-row select) — the right gesture is auto-detected. Always **replace** -semantics (the field ends up with exactly the given set): +**Multi-select** — pass an **array** to select several values at once; the field is set to exactly +that set (replace). Returns `selected: { field, values, notSelected? }` — `values` are the ones +actually selected; any value the field doesn't offer goes to `notSelected: [{ value, reason }]` +(the call doesn't throw). Elements take the same forms as `search` (string, or `{ col: value }`). ```js await selectValue('Наименование компании', ['Альфа ООО', 'Бета АО']); -// result.selected = { field: 'Наименование компании', values: ['Альфа ООО', 'Бета АО'] } - -// Values not offered by the field land in notSelected (the call does not throw): -const r = await selectValue('Организации', ['Альфа ООО', 'Несуществующая']); -// r.selected = { field: 'Организации', values: ['Альфа ООО'], -// notSelected: [{ value: 'Несуществующая', reason: 'not_in_list' }] } +// selected: { field: 'Наименование компании', values: ['Альфа ООО', 'Бета АО'] } ``` -Array elements are strings (the displayed value); objects `{ col: value }` are passed through as -the catalog search (for surfaces that open a selection catalog). #### `fillTableRow(fields, opts)` → form state with `filled` (+ optional `notFilled`) Fill table row cells via Tab navigation. Value is a plain string, `{ value, type }` for composite-type cells, or `''`/`null` to clear (Shift+F4).