Skip to content

Fix failing test: CompactFiltersComponent clear button callback #32

@lc0rp

Description

@lc0rp

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions