mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-28 07:31:00 +03:00
fix(web-test): fillTableRow processes remaining fields after checkbox toggle
Previously fillTableRow returned immediately after toggling the first checkbox field, ignoring any remaining fields. Now it recursively processes the rest on the same row. 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
8fca42193a
commit
18a198d12b
@@ -2206,6 +2206,13 @@ export async function fillTableRow(fields, { tab, add, row, table } = {}) {
|
|||||||
}
|
}
|
||||||
const results = [{ field: firstKey0, ok: true, method: 'toggle', value: desired }];
|
const results = [{ field: firstKey0, ok: true, method: 'toggle', value: desired }];
|
||||||
await waitForStable(formNum);
|
await waitForStable(formNum);
|
||||||
|
// If more fields remain, process them on the same row
|
||||||
|
const remaining = { ...fields };
|
||||||
|
delete remaining[firstKey0];
|
||||||
|
if (Object.keys(remaining).length > 0) {
|
||||||
|
const more = await fillTableRow(remaining, { row, table });
|
||||||
|
results.push(...more);
|
||||||
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user