Skip to content

Commit fa89fdd

Browse files
committed
chore(*): fix tests due to design changes
1 parent b1e0b92 commit fa89fdd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid-filtering-ui.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3701,7 +3701,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
37013701

37023702
listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix, searchComponent);
37033703
expect(inputNativeElement.value).toBe('', 'incorrect rendered list items count');
3704-
expect(listItems.length).toBe(9, 'incorrect rendered list items count');
3704+
expect(listItems.length).toBe(8, 'incorrect rendered list items count');
37053705
});
37063706

37073707
it('Should enable/disable the apply button correctly.', async () => {
@@ -4012,15 +4012,15 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
40124012
fix.detectChanges();
40134013

40144014
// Verify scrollbar's scrollTop.
4015-
expect(scrollbar.scrollTop >= 670 && scrollbar.scrollTop <= 700).toBe(true,
4015+
expect(scrollbar.scrollTop >= 660 && scrollbar.scrollTop <= 700).toBe(true,
40164016
'search scrollbar has incorrect scrollTop: ' + scrollbar.scrollTop);
40174017
// Verify display container height.
40184018
const displayContainer = searchComponent.querySelector('igx-display-container');
40194019
const displayContainerRect = displayContainer.getBoundingClientRect();
4020-
expect(displayContainerRect.height).toBe(216, 'incorrect search display container height');
4020+
expect(displayContainerRect.height).toBe(240, 'incorrect search display container height');
40214021
// Verify rendered list items count.
40224022
const listItems = displayContainer.querySelectorAll('igx-list-item');
4023-
expect(listItems.length).toBe(9, 'incorrect rendered list items count');
4023+
expect(listItems.length).toBe(10, 'incorrect rendered list items count');
40244024
}));
40254025

40264026
it('should correctly display all items in search list after filtering it', (async () => {
@@ -4294,8 +4294,8 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
42944294
fix.detectChanges();
42954295

42964296
verifyExcelStyleFilterAvailableOptions(fix,
4297-
['Select All', '(Blanks)', '0', '20', '100', '127', '254', '702', '1,000'],
4298-
[true, true, true, true, true, true, true, true, true]);
4297+
['Select All', '(Blanks)', '0', '20', '100', '127', '254', '702'],
4298+
[true, true, true, true, true, true, true, true]);
42994299

43004300
GridFunctions.clickExcelFilterIcon(fix, 'ProductName');
43014301
tick(100);
@@ -5869,7 +5869,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
58695869

58705870
// Verify items in search have loaded and that the loading indicator is not visible.
58715871
listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix);
5872-
expect(listItems.length).toBe(9, 'incorrect rendered list items count');
5872+
expect(listItems.length).toBe(8, 'incorrect rendered list items count');
58735873

58745874
listItems.forEach((item, ind) => {
58755875
expect(item.innerText).toBe(downloads[ind]);
@@ -6026,7 +6026,7 @@ describe('IgxGrid - Filtering actions - Excel style filtering #grid', () => {
60266026
fix.detectChanges();
60276027
expect(compInstance.doneCallbackCounter).toBe(2, 'Incorrect done callback execution count');
60286028
listItems = GridFunctions.getExcelStyleSearchComponentListItems(fix);
6029-
expect(listItems.length).toBe(9, 'incorrect rendered list items count');
6029+
expect(listItems.length).toBe(8, 'incorrect rendered list items count');
60306030
loadingIndicator = GridFunctions.getExcelFilteringLoadingIndicator(fix);
60316031
expect(loadingIndicator).toBeNull('esf loading indicator is visible');
60326032
}));

0 commit comments

Comments
 (0)