Skip to content

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

Merged
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/state-disabled-unset-aria
Aug 21, 2026
Merged

chore(forms): cover unset disabled aria in state controller#233
coryrylan merged 1 commit into
mainfrom
upkeep/coverage/state-disabled-unset-aria

Conversation

@cursor

@cursor cursor Bot 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

Metric Before After
Lines 90.9% (10/11) 100% (11/11)
Branches 87.5% (7/8) 100% (8/8)
Functions 100% 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 Web View 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
@coryrylan
coryrylan merged commit e617567 into main Aug 21, 2026
15 checks passed
@coryrylan
coryrylan deleted the upkeep/coverage/state-disabled-unset-aria branch August 21, 2026 14:04
@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.4.0 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.0.1 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator

🎉 This issue has been resolved in version 2.1.3 🎉

Changelog

Sign up for free to 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