@@ -737,7 +737,7 @@ export class GridFunctions {
737737 public static getApplyButtonExcelStyleFiltering ( fix : ComponentFixture < any > , menu = null , grid = 'igx-grid' ) {
738738 const excelMenu = menu ? menu : GridFunctions . getExcelStyleFilteringComponent ( fix , grid ) ;
739739 const containedButtons = Array . from ( excelMenu . querySelectorAll ( '.igx-button--contained' ) ) ;
740- const applyButton : any = containedButtons . find ( ( rb : any ) => rb . innerText === 'apply' ) ;
740+ const applyButton : any = containedButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'apply' ) ;
741741 return applyButton ;
742742 }
743743
@@ -749,7 +749,7 @@ export class GridFunctions {
749749 public static clickCancelExcelStyleFiltering ( fix : ComponentFixture < any > , menu = null ) {
750750 const excelMenu = menu ? menu : GridFunctions . getExcelStyleFilteringComponent ( fix ) ;
751751 const flatButtons = Array . from ( excelMenu . querySelectorAll ( '.igx-button--flat' ) ) ;
752- const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText === 'cancel' ) ;
752+ const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'cancel' ) ;
753753 cancelButton . click ( ) ;
754754 }
755755
@@ -770,7 +770,7 @@ export class GridFunctions {
770770 public static getApplyExcelStyleCustomFiltering ( fix : ComponentFixture < any > ) : HTMLElement {
771771 const customFilterMenu = GridFunctions . getExcelStyleCustomFilteringDialog ( fix ) ;
772772 const containedButtons = Array . from ( customFilterMenu . querySelectorAll ( '.igx-button--contained' ) ) ;
773- const applyButton = containedButtons . find ( ( rb : any ) => rb . innerText === 'apply' ) ;
773+ const applyButton = containedButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'apply' ) ;
774774 return applyButton as HTMLElement ;
775775 }
776776
@@ -803,7 +803,7 @@ export class GridFunctions {
803803 public static clickCancelExcelStyleCustomFiltering ( fix : ComponentFixture < any > ) {
804804 const customFilterMenu = GridFunctions . getExcelStyleCustomFilteringDialog ( fix ) ;
805805 const flatButtons = Array . from ( customFilterMenu . querySelectorAll ( '.igx-button--flat' ) ) ;
806- const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText === 'cancel' ) ;
806+ const cancelButton : any = flatButtons . find ( ( rb : any ) => rb . innerText . toLowerCase ( ) === 'cancel' ) ;
807807 cancelButton . click ( ) ;
808808 }
809809
0 commit comments