Skip to content

Commit 5b9578b

Browse files
committed
fix(grid-validation): mock element.matches for tooltip hover test
1 parent 34db1cc commit 5b9578b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

projects/igniteui-angular/grids/grid/src/grid-validation.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ describe('IgxGrid - Validation #grid', () => {
225225
expect(cell.errorTooltip.first.collapsed).toBeTrue();
226226

227227
const element = fixture.debugElement.query(By.directive(IgxTooltipTargetDirective)).nativeElement;
228+
spyOn(element, 'matches').and.returnValue(true);
228229
element.dispatchEvent(new MouseEvent('pointerenter'));
229230
flush();
230231
fixture.detectChanges();

0 commit comments

Comments
 (0)