diff --git a/projects/igniteui-angular/src/lib/test-utils/grid-functions.spec.ts b/projects/igniteui-angular/src/lib/test-utils/grid-functions.spec.ts index 6801c1139f4..93f2bb35078 100644 --- a/projects/igniteui-angular/src/lib/test-utils/grid-functions.spec.ts +++ b/projects/igniteui-angular/src/lib/test-utils/grid-functions.spec.ts @@ -749,7 +749,7 @@ export class GridFunctions { public static clickCancelExcelStyleFiltering(fix: ComponentFixture, menu = null) { const excelMenu = menu ? menu : GridFunctions.getExcelStyleFilteringComponent(fix); const flatButtons = Array.from(excelMenu.querySelectorAll('.igx-button--flat')); - const cancelButton: any = flatButtons.find((rb: any) => rb.innerText === 'cancel'); + const cancelButton: any = flatButtons.find((rb: any) => rb.innerText.toLowerCase() === 'cancel'); cancelButton.click(); }