Skip to content

Commit

Permalink
test(search): add case sensitive/exact match test #3519
Browse files Browse the repository at this point in the history
  • Loading branch information
DiyanDimitrov committed Jan 22, 2019
1 parent f85078f commit 619e0ac
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,20 @@ describe('IgxTreeGrid - search API', () => {

verifyVisibleCellValueDivsCount(fix);
});

it('Search highlights should work for case sensitive and exact match searches', () => {
let actualCount = treeGrid.findNext('er');
verifySearchResult(fixNativeElement, 6, 0, actualCount);

actualCount = treeGrid.findNext('er', true, false);
verifySearchResult(fixNativeElement, 5, 0, actualCount);

actualCount = treeGrid.findNext('Software Developer');
verifySearchResult(fixNativeElement, 3, 0, actualCount);

actualCount = treeGrid.findNext('Software Developer', false, true);
verifySearchResult(fixNativeElement, 1, 0, actualCount);
});
});

describe('Scrollable TreeGrid', () => {
Expand Down

0 comments on commit 619e0ac

Please sign in to comment.