updateStep function test exported ✗ 0.0%
Last updated: 2026-03-05T11:49:57.418Z
Metrics
LOC: 11
Complexity: 6
Params: 4
Coverage: 0.0% (0/7 lines, 0x executed)
Signature
updateStep(
index: number,
patch: Partial<Pick<RecordedStep, "value" | "waitTimeout">>,
): : boolean
Summary
Updates a step's fields at the given index. Supports partial updates (value, waitMs).
Source Code
export function updateStep(
index: number,
patch: Partial<Pick<RecordedStep, "value" | "waitTimeout">>,
): boolean {
if (!session || index < 0 || index >= session.steps.length) return false;
const step = session.steps[index];
if (patch.value !== undefined) step.value = patch.value;
if (patch.waitTimeout !== undefined) step.waitTimeout = patch.waitTimeout;
onStepUpdatedCallback?.(step, index);
return true;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| FillableElement | uses |