Repository navigation
Add comprehensive event tests for SlashCommandDropdown component - #166
Merged
Merged
Conversation
#153) - Implement 39 comprehensive test cases covering all component functionality - Test rendering states (visible, loading, empty, with commands) - Test keyboard navigation (ArrowUp/Down, Enter, Escape with boundaries) - Test event propagation (stopPropagation/preventDefault verification) - Test event dispatching (select/close callbacks) - Test lifecycle management (event listener cleanup on unmount) - Test smart positioning (viewport edge detection, below/above cursor) - Test edge cases (empty arrays, rapid input, single item, state transitions) - Test accessibility (ARIA attributes, role, selected state, tabindex) - Test mouse interactions (click selection, hover updates) Component Changes: - Convert SlashCommandDropdown from createEventDispatcher to callback props - Add onselect and onclose props for Svelte 5 compatibility - Align event handling pattern with NodeAutocomplete component - Maintain full backward compatibility with existing usage Test Coverage: - All 39 tests passing - Event propagation correctly prevents background actions - Lifecycle cleanup verified (no memory leaks) - Smart positioning adapts to viewport constraints - Full ARIA compliance for accessibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Add Accessibility (ARIA attributes, tabindex management) - Add Mouse interactions (click, hover, mouseenter) - Document total test count: 39 test cases - Improve maintainability for future developers Addresses code review feedback from PR #166 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 4, 2026
* Add comprehensive event tests for SlashCommandDropdown component (closes #153) - Implement 39 comprehensive test cases covering all component functionality - Test rendering states (visible, loading, empty, with commands) - Test keyboard navigation (ArrowUp/Down, Enter, Escape with boundaries) - Test event propagation (stopPropagation/preventDefault verification) - Test event dispatching (select/close callbacks) - Test lifecycle management (event listener cleanup on unmount) - Test smart positioning (viewport edge detection, below/above cursor) - Test edge cases (empty arrays, rapid input, single item, state transitions) - Test accessibility (ARIA attributes, role, selected state, tabindex) - Test mouse interactions (click selection, hover updates) Component Changes: - Convert SlashCommandDropdown from createEventDispatcher to callback props - Add onselect and onclose props for Svelte 5 compatibility - Align event handling pattern with NodeAutocomplete component - Maintain full backward compatibility with existing usage Test Coverage: - All 39 tests passing - Event propagation correctly prevents background actions - Lifecycle cleanup verified (no memory leaks) - Smart positioning adapts to viewport constraints - Full ARIA compliance for accessibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Update test file header to document all 9 test categories - Add Accessibility (ARIA attributes, tabindex management) - Add Mouse interactions (click, hover, mouseenter) - Document total test count: 39 test cases - Improve maintainability for future developers Addresses code review feedback from PR #166 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 5, 2026
* Add comprehensive event tests for SlashCommandDropdown component (closes #153) - Implement 39 comprehensive test cases covering all component functionality - Test rendering states (visible, loading, empty, with commands) - Test keyboard navigation (ArrowUp/Down, Enter, Escape with boundaries) - Test event propagation (stopPropagation/preventDefault verification) - Test event dispatching (select/close callbacks) - Test lifecycle management (event listener cleanup on unmount) - Test smart positioning (viewport edge detection, below/above cursor) - Test edge cases (empty arrays, rapid input, single item, state transitions) - Test accessibility (ARIA attributes, role, selected state, tabindex) - Test mouse interactions (click selection, hover updates) Component Changes: - Convert SlashCommandDropdown from createEventDispatcher to callback props - Add onselect and onclose props for Svelte 5 compatibility - Align event handling pattern with NodeAutocomplete component - Maintain full backward compatibility with existing usage Test Coverage: - All 39 tests passing - Event propagation correctly prevents background actions - Lifecycle cleanup verified (no memory leaks) - Smart positioning adapts to viewport constraints - Full ARIA compliance for accessibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Update test file header to document all 9 test categories - Add Accessibility (ARIA attributes, tabindex management) - Add Mouse interactions (click, hover, mouseenter) - Document total test count: 39 test cases - Improve maintainability for future developers Addresses code review feedback from PR #166 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 26, 2026
* Add comprehensive event tests for SlashCommandDropdown component (closes #153) - Implement 39 comprehensive test cases covering all component functionality - Test rendering states (visible, loading, empty, with commands) - Test keyboard navigation (ArrowUp/Down, Enter, Escape with boundaries) - Test event propagation (stopPropagation/preventDefault verification) - Test event dispatching (select/close callbacks) - Test lifecycle management (event listener cleanup on unmount) - Test smart positioning (viewport edge detection, below/above cursor) - Test edge cases (empty arrays, rapid input, single item, state transitions) - Test accessibility (ARIA attributes, role, selected state, tabindex) - Test mouse interactions (click selection, hover updates) Component Changes: - Convert SlashCommandDropdown from createEventDispatcher to callback props - Add onselect and onclose props for Svelte 5 compatibility - Align event handling pattern with NodeAutocomplete component - Maintain full backward compatibility with existing usage Test Coverage: - All 39 tests passing - Event propagation correctly prevents background actions - Lifecycle cleanup verified (no memory leaks) - Smart positioning adapts to viewport constraints - Full ARIA compliance for accessibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Update test file header to document all 9 test categories - Add Accessibility (ARIA attributes, tabindex management) - Add Mouse interactions (click, hover, mouseenter) - Document total test count: 39 test cases - Improve maintainability for future developers Addresses code review feedback from PR #166 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #153