Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ describe('DownloadReportZipComponent', () => {
expect(spyOnShow).toHaveBeenCalled();
});

it('should be shown on focusin', () => {
it('should be shown on keyup', () => {
const spyOnShow = spyOn(component.tooltip, 'show');
fixture.nativeElement.dispatchEvent(new Event('focusin'));
fixture.nativeElement.dispatchEvent(new Event('keyup'));

expect(spyOnShow).toHaveBeenCalled();
});
Expand All @@ -185,9 +185,9 @@ describe('DownloadReportZipComponent', () => {
expect(spyOnHide).toHaveBeenCalled();
});

it('should be hidden on focusout', () => {
it('should be hidden on keydown', () => {
const spyOnHide = spyOn(component.tooltip, 'hide');
fixture.nativeElement.dispatchEvent(new Event('focusout'));
fixture.nativeElement.dispatchEvent(new Event('keydown'));

expect(spyOnHide).toHaveBeenCalled();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ export class DownloadReportZipComponent
readonly tabIndex = 0;

@HostListener('mouseenter')
@HostListener('focusin', ['$event'])
@HostListener('keyup', ['$event'])
onEvent(): void {
this.tooltip.show();
}

@HostListener('mouseleave')
@HostListener('focusout', ['$event'])
@HostListener('keydown', ['$event'])
outEvent(): void {
this.tooltip.hide();
}
Expand Down