Skip to content

test: cover the two Select cases only a consumer had - #39

Merged
inureyes merged 1 commit into
mainfrom
test/select-keyboard-and-unsearchable
Sep 8, 2026
Merged

inureyes merged 1 commit into
mainfrom
test/select-keyboard-and-unsearchable

Conversation

@inureyes

@inureyes inureyes commented Sep 8, 2026

Copy link
Copy Markdown
Member

Follow-up to the correction in #16.

That proposal said neither product shipping Select had a test for it. True of backend.ai-go, wrong about continuum-hub, which has had five since its #969 and #1062. The fifteen tests admitted with the component in #37 covered four of the five.

These are the other two, and both are properties of the component rather than of any consumer:

  • Arrow keys skip a disabled option, not just a click. The pointer half was covered; the keyboard half was only guarded in the hub.
  • A select without searchable renders no search field, and shows every option.

Verified against the perturbations that should break them: letting keyboard navigation land on disabled options fails three tests, rendering the search field unconditionally fails one.

No source change, so no release is needed for this; it rides the next one.

Refs #16

Closing #16 turned up a correction: the proposal said neither product had a `Select` test, which was true of backend.ai-go and wrong about continuum-hub, whose five tests predate this admission. The package's fifteen covered four of them.

These are the other two. Arrow keys skip a disabled option, not just a click, and a select without `searchable` renders no search field and every option. Both were only guarded in a consumer, which is the wrong place for a property of this component.

Verified against the perturbations: letting the keyboard land on disabled options fails three tests, rendering the search field unconditionally fails one.
@inureyes
inureyes merged commit bdf2765 into main Sep 8, 2026
3 checks passed
@inureyes
inureyes deleted the test/select-keyboard-and-unsearchable branch September 8, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant