Skip to content

Commit

Permalink
test: restore fuzzy search test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Sep 23, 2024
1 parent c925a4e commit ebbe69c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/spec/features/popup-menu/PopupMenuSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,28 @@ describe('features/popup-menu', function() {
}));


it('should show search results (matching label & search)', inject(async function(popupMenu) {

// given
popupMenu.registerProvider('test-menu', testMenuProvider);
popupMenu.open({}, 'test-menu', { x: 100, y: 100 }, { search: true });

// when
await triggerSearch('delta search');

// then
var shownEntries;

await waitFor(() => {
shownEntries = queryPopupAll('.entry');

expect(shownEntries).to.have.length(1);
});

expect(shownEntries[0].querySelector('.djs-popup-label').textContent).to.eql('Delta');
}));


describe('ranking', function() {

it('should hide rank < 0 items', inject(async function(popupMenu) {
Expand Down

0 comments on commit ebbe69c

Please sign in to comment.