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:
Nick Shirokov
2026-03-16 12:40:15 +03:00
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 }];
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;
}