@@ -738,7 +738,7 @@ export class GridFunctions {
738738 public static getApplyButtonExcelStyleFiltering ( fix : ComponentFixture < any > , menu = null , grid = 'igx-grid' ) {
739739 const excelMenu = menu ? menu : GridFunctions . getExcelStyleFilteringComponent ( fix , grid ) ;
740740 const containedButtons = Array . from ( excelMenu . querySelectorAll ( '.igx-button--contained' ) ) ;
741- const applyButton : any = containedButtons . find ( ( rb : any ) => rb . innerText === 'apply' ) ;
741+ const applyButton : any = containedButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'apply' ) ;
742742 return applyButton ;
743743 }
744744
@@ -750,7 +750,7 @@ export class GridFunctions {
750750 public static clickCancelExcelStyleFiltering ( fix : ComponentFixture < any > , menu = null ) {
751751 const excelMenu = menu ? menu : GridFunctions . getExcelStyleFilteringComponent ( fix ) ;
752752 const flatButtons = Array . from ( excelMenu . querySelectorAll ( '.igx-button--flat' ) ) ;
753- const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText === 'cancel' ) ;
753+ const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'cancel' ) ;
754754 cancelButton . click ( ) ;
755755 }
756756
@@ -771,7 +771,7 @@ export class GridFunctions {
771771 public static getApplyExcelStyleCustomFiltering ( fix : ComponentFixture < any > ) : HTMLElement {
772772 const customFilterMenu = GridFunctions . getExcelStyleCustomFilteringDialog ( fix ) ;
773773 const containedButtons = Array . from ( customFilterMenu . querySelectorAll ( '.igx-button--contained' ) ) ;
774- const applyButton = containedButtons . find ( ( rb : any ) => rb . innerText === 'apply' ) ;
774+ const applyButton = containedButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'apply' ) ;
775775 return applyButton as HTMLElement ;
776776 }
777777
@@ -804,7 +804,7 @@ export class GridFunctions {
804804 public static clickCancelExcelStyleCustomFiltering ( fix : ComponentFixture < any > ) {
805805 const customFilterMenu = GridFunctions . getExcelStyleCustomFilteringDialog ( fix ) ;
806806 const flatButtons = Array . from ( customFilterMenu . querySelectorAll ( '.igx-button--flat' ) ) ;
807- const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText === 'cancel' ) ;
807+ const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'cancel' ) ;
808808 cancelButton . click ( ) ;
809809 }
810810
0 commit comments