mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-20 00:45:54 +03:00
chore(web-test): убрать отладочный console.log из selectValuesMulti
Лог детекта поверхности шумел в exec-выводе при обычном использовании навыка. Нужная диагностика и так в возврате (selected.values/notSelected); поверхность — внутренняя деталь, наружу не отдаётся. Чистое удаление строки, логика не менялась. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
619fd77fae
commit
9f4b3449a9
@@ -1,4 +1,4 @@
|
|||||||
// web-test forms/select-value v1.27 — Reference & composite-type value selection: selectValue (+ array multi-select), fillReferenceField, selection/type-dialog pickers.
|
// web-test forms/select-value v1.28 — Reference & composite-type value selection: selectValue (+ array multi-select), fillReferenceField, selection/type-dialog pickers.
|
||||||
// Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
// Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -651,7 +651,7 @@ const MULTI_SURFACE = {
|
|||||||
* Ctrl-multi-row catalog form. Composes existing API
|
* Ctrl-multi-row catalog form. Composes existing API
|
||||||
* (clickElement/fillTableRow/closeForm/filterList/readTable/getFormState).
|
* (clickElement/fillTableRow/closeForm/filterList/readTable/getFormState).
|
||||||
* Returns flat form state + `selected: { field, values:[…selected…], notSelected?:[{value,reason}] }`.
|
* Returns flat form state + `selected: { field, values:[…selected…], notSelected?:[{value,reason}] }`.
|
||||||
* Surface name / step detail go to console (exec output) only, NOT the structured result.
|
* The detected surface is an internal detail — it is NOT exposed in the result.
|
||||||
*/
|
*/
|
||||||
async function selectValuesMulti(fieldName, values, { type } = {}) {
|
async function selectValuesMulti(fieldName, values, { type } = {}) {
|
||||||
ensureConnected();
|
ensureConnected();
|
||||||
@@ -705,7 +705,6 @@ async function selectValuesMulti(fieldName, values, { type } = {}) {
|
|||||||
} else if (await cloudDDVisible()) {
|
} else if (await cloudDDVisible()) {
|
||||||
surface = MULTI_SURFACE.cloudDropdown;
|
surface = MULTI_SURFACE.cloudDropdown;
|
||||||
}
|
}
|
||||||
console.log(`[selectValuesMulti] field="${fieldName}" surface=${surface} form=${formNum} values=${JSON.stringify(targets.map(t => t.str))}`);
|
|
||||||
|
|
||||||
if (!surface) {
|
if (!surface) {
|
||||||
return returnFormState({ selected: { field: fieldName, values: [], error: 'surface_unrecognized',
|
return returnFormState({ selected: { field: fieldName, values: [], error: 'surface_unrecognized',
|
||||||
|
|||||||
Reference in New Issue
Block a user