Skip to content

Commit

Permalink
test: add missing data provider filtering tests (#7465)
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored May 31, 2024
1 parent 878f9fa commit eb3dfaf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/combo-box/test/data-provider-filtering.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ const TEMPLATES = {
expect(params.filter).to.equal('');
});

it('should clear filteredItems on filter change', () => {
setInputValue(comboBox, 'Item');
expect(comboBox.filteredItems).to.deep.equal([]);
});

it('should update filteredItems on filter request response', async () => {
setInputValue(comboBox, 'Item 1');
await aTimeout(0);
expect(comboBox.filteredItems).to.deep.equal(['Item 1']);
});

it('should clear filter on value clear', async () => {
setInputValue(comboBox, 'Item');
await aTimeout(0);
Expand Down

0 comments on commit eb3dfaf

Please sign in to comment.