Skip to content

chore(forms): cover unset disabled aria in state controller - #233

Open
cursor[bot] wants to merge 1 commit into
mainfrom
upkeep/coverage/state-disabled-unset-aria
Open

chore(forms): cover unset disabled aria in state controller#233
cursor[bot] wants to merge 1 commit into
mainfrom
upkeep/coverage/state-disabled-unset-aria

Conversation

@cursor

@cursorcursorBot commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • Task: coverage
  • Target:projects/forms/src/internal/controllers/state-disabled.controller.ts
  • Selector rationale: "1 uncovered lines, 90.9% lines and 87.5% branches, the smallest gap below the 90% threshold"

Adds one unit test in the existing state-disabled.controller.test.ts for the unset disabled path (undefined and null), which clears aria-disabled and does not apply :state(disabled).

Coverage

MetricBeforeAfter
Lines90.9% (10/11)100% (11/11)
Branches87.5% (7/8)100% (8/8)
Functions100%100%

No other file's coverage decreased.

API

No public API changed. Production source is untouched.

Left alone

  • Other forms files still below 90% branch coverage (type-popover-trigger.controller.ts, select.ts)
  • Test host _internals non-null assertions already used by this suite

Verification

From projects/forms: lint, test (286 passing), and test:lighthouse passed. test:types, test:axe, test:ssr, and test:visual are not defined for this package. Root pnpm run ci passed.

Open in WebView Automation

Adds a unit test for the unset disabled branch in
state-disabled.controller.ts, raising line coverage from 90.9% to 100%
and branch coverage from 87.5% to 100%. No behavior change.
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
@coryrylan
coryrylan marked this pull request as ready for review August 21, 2026 12:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@coryrylan@cursoragent