mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-05 18:58:57 +03:00
fix(web-test): уйти от хрупкого имени кнопки СписокСнятьФлажки в мультивыборе
Имя кнопки содержит имя грида (<Список>СнятьФлажки) — хрупко. Константа
MULTI_BTN.uncheckAll → стабильная подстрока «СнятьФлажки»; clickElement и
hasButton матчат по вхождению, поэтому работает независимо от имени списка.
Коллизии с «УстановитьФлажки» нет. Live-проверено: clickElement('СнятьФлажки')
резолвит СписокСнятьФлажки и снимает пометки.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// web-test forms/select-value v1.26 — Reference & composite-type value selection: selectValue (+ array multi-select), fillReferenceField, selection/type-dialog pickers.
|
||||
// web-test forms/select-value v1.27 — Reference & composite-type value selection: selectValue (+ array multi-select), fillReferenceField, selection/type-dialog pickers.
|
||||
// Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
|
||||
import {
|
||||
@@ -628,7 +628,8 @@ export async function fillReferenceField(selector, fieldName, value, formNum) {
|
||||
// surface detection and clicking (clickElement matches a button by its technical
|
||||
// name OR tooltip), so detect and click never drift apart.
|
||||
const MULTI_BTN = {
|
||||
uncheckAll: 'СписокСнятьФлажки', // tooltip "Снять пометки со всех строк"
|
||||
uncheckAll: 'СнятьФлажки', // substring of the real name "<List>СнятьФлажки" (list-name-agnostic);
|
||||
// clickElement/hasButton both match by includes. tooltip "Снять пометки со всех строк"
|
||||
confirm: 'ОК',
|
||||
podbor: 'Подбор',
|
||||
choose: 'Выбрать',
|
||||
|
||||
Reference in New Issue
Block a user