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)

graph LR updateStep["updateStep"] FillableElement["FillableElement"] FillableElement -->|uses| updateStep style updateStep fill:#dbeafe,stroke:#2563eb,stroke-width:2px click updateStep "5f38b9fcf0a5ee63.html" click FillableElement "2ecf5aaac3f668a8.html"
SourceType
FillableElement uses