fill method infrastructure ✓ 100.0%

Last updated: 2026-03-04T23:21:38.387Z

Metrics

LOC: 12 Complexity: 5 Params: 2 Coverage: 100.0% (5/5 lines, 7x executed)

Signature

fill(wrapper: HTMLElement, value: string): : boolean

Source Code

  fill(wrapper: HTMLElement, value: string): boolean {
    const isChecked = wrapper.classList.contains("ant-switch-checked");
    const shouldBeOn =
      value === "true" || value === "1" || value === "on" || value === "yes";

    // Toggle only if current state doesn't match desired state
    if (shouldBeOn !== isChecked) {
      simulateClick(wrapper);
    }

    return true;
  },

Dependencies (Outgoing)

graph LR fill["fill"] simulateClick["simulateClick"] fill -->|calls| simulateClick style fill fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fill "cc90a33c4d1eefb7.html" click simulateClick "7c6c21320aaee4c4.html"
TargetType
simulateClick calls

No incoming dependencies.