generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Description
The test for CompactFiltersComponent's clear button functionality is failing. The test expects a callback to be invoked when the clear button is clicked, but the callback is not being called.
Failing Test
FAIL tests/compact-filters.test.ts > CompactFiltersComponent > Assignee Filter Display > should clear all assignees when clear button is clicked
AssertionError: expected "spy" to be called with arguments: [ { people: [], companies: [] } ]
Number of calls: 0
Location
- Test file:
tests/compact-filters.test.ts:217 - Test name: "should clear all assignees when clear button is clicked"
Expected Behavior
When the clear button is clicked, it should invoke the update callback with empty arrays for both people and companies:
expect(mockUpdateCallback).toHaveBeenCalledWith({
people: [],
companies: [],
});Actual Behavior
The callback is not being invoked at all (Number of calls: 0).
Potential Root Cause
The clear button click handler in CompactFiltersComponent may not be properly wired up to invoke the callback function.
Priority
Medium - This is a UI functionality issue that affects the ability to clear assignee filters in the compact view.
Metadata
Metadata
Assignees
Labels
No labels