Skip to content

Commit 3ff72f5

Browse files
chore(release): 11.0.0 [skip ci]
## [11.0.0](v10.12.1...v11.0.0) (2026-02-09) ### ⚠ BREAKING CHANGES * Test infrastructure changed from web-test-runner to Vitest * chore: include e2e tests in npm test script * feat: add interaction tests to story play functions - Add userEvent interactions to test keyboard navigation and selection - Create InteractionTest stories for comprehensive E2E-style tests - Keep Basic stories with read-only assertions for visual regression tests - Add eslint override to disable max-lines for stories folder - Test coverage: chip removal, item selection, no-results message, exclude toggle * chore: enable autodocs for all stories * chore: reorder stories - Autocomplete before Excluding * fix: enable autodocs via tags for Storybook 10 * refactor: remove keybindings infrastructure (to be added later) * test: migrate removed tests to Vitest unit tests and Storybook interaction tests - Add unit tests for pure functions (search, mark) in test/utils.test.ts (11 tests) - Extract pure functions to src/autocomplete/pure.ts for jsdom testability - Add Storybook test stories for listbox (7 tests) and autocomplete (11 tests) - Configure vitest with 'unit' project for jsdom-based tests - Add jsdom dependency for unit testing pure functions - Update eslint config for test files * test: add missing coverage for external search, valueProperty, onSelect, keyboard edge cases Add 10 new test stories to close coverage gaps from the @web/test-runner migration: Autocomplete (4 stories): - ExternalSearchMode: verifies client-side filtering is bypassed - ValueProperty: verifies deduplication by valueProperty (id) - OnSelectCallback: verifies onSelect receives (item, meta) - Limit1DisablesBackspace: verifies use-keys disables when limit=1 Listbox (6 stories): - KeyboardDownCycling: ArrowDown wraps from last to first item - KeyboardUpNavigation: ArrowDown then ArrowUp returns to original - HighlightAndEnter: mouseenter sets highlight, Enter selects it - EnterDefaultIndex0: Enter with implicit defaultIndex=0 - CtrlAltIgnoresKeys: Ctrl+Alt modifier combo is ignored - LegacyKeyNames: legacy 'Down'/'Up' key names are handled * ci: remove separate playwright workflow, run e2e via npm test * refactor: merge pure.ts back into util.ts, move useNotify into use-autocomplete ### Miscellaneous Chores * migrate tests to Vitest with Storybook interaction tests ([#224](#224)) ([923d855](923d855))
1 parent 923d855 commit 3ff72f5

File tree

3 files changed

+62
-3
lines changed

3 files changed

+62
-3
lines changed

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
## [11.0.0](https://github.com/Neovici/cosmoz-autocomplete/compare/v10.12.1...v11.0.0) (2026-02-09)
2+
3+
### ⚠ BREAKING CHANGES
4+
5+
* Test infrastructure changed from web-test-runner to Vitest
6+
7+
* chore: include e2e tests in npm test script
8+
9+
* feat: add interaction tests to story play functions
10+
11+
- Add userEvent interactions to test keyboard navigation and selection
12+
- Create InteractionTest stories for comprehensive E2E-style tests
13+
- Keep Basic stories with read-only assertions for visual regression tests
14+
- Add eslint override to disable max-lines for stories folder
15+
- Test coverage: chip removal, item selection, no-results message, exclude toggle
16+
17+
* chore: enable autodocs for all stories
18+
19+
* chore: reorder stories - Autocomplete before Excluding
20+
21+
* fix: enable autodocs via tags for Storybook 10
22+
23+
* refactor: remove keybindings infrastructure (to be added later)
24+
25+
* test: migrate removed tests to Vitest unit tests and Storybook interaction tests
26+
27+
- Add unit tests for pure functions (search, mark) in test/utils.test.ts (11 tests)
28+
- Extract pure functions to src/autocomplete/pure.ts for jsdom testability
29+
- Add Storybook test stories for listbox (7 tests) and autocomplete (11 tests)
30+
- Configure vitest with 'unit' project for jsdom-based tests
31+
- Add jsdom dependency for unit testing pure functions
32+
- Update eslint config for test files
33+
34+
* test: add missing coverage for external search, valueProperty, onSelect, keyboard edge cases
35+
36+
Add 10 new test stories to close coverage gaps from the @web/test-runner migration:
37+
38+
Autocomplete (4 stories):
39+
- ExternalSearchMode: verifies client-side filtering is bypassed
40+
- ValueProperty: verifies deduplication by valueProperty (id)
41+
- OnSelectCallback: verifies onSelect receives (item, meta)
42+
- Limit1DisablesBackspace: verifies use-keys disables when limit=1
43+
44+
Listbox (6 stories):
45+
- KeyboardDownCycling: ArrowDown wraps from last to first item
46+
- KeyboardUpNavigation: ArrowDown then ArrowUp returns to original
47+
- HighlightAndEnter: mouseenter sets highlight, Enter selects it
48+
- EnterDefaultIndex0: Enter with implicit defaultIndex=0
49+
- CtrlAltIgnoresKeys: Ctrl+Alt modifier combo is ignored
50+
- LegacyKeyNames: legacy 'Down'/'Up' key names are handled
51+
52+
* ci: remove separate playwright workflow, run e2e via npm test
53+
54+
* refactor: merge pure.ts back into util.ts, move useNotify into use-autocomplete
55+
56+
### Miscellaneous Chores
57+
58+
* migrate tests to Vitest with Storybook interaction tests ([#224](https://github.com/Neovici/cosmoz-autocomplete/issues/224)) ([923d855](https://github.com/Neovici/cosmoz-autocomplete/commit/923d85530c621ec36217bb00cae0a0c8b4568c19))
59+
160
## [10.12.1](https://github.com/Neovici/cosmoz-autocomplete/compare/v10.12.0...v10.12.1) (2026-02-06)
261

362
### Bug Fixes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neovici/cosmoz-autocomplete",
3-
"version": "10.12.1",
3+
"version": "11.0.0",
44
"type": "module",
55
"description": "A autocomplete input web component",
66
"keywords": [

0 commit comments

Comments
 (0)