`it('should call onFooterClick on click', async() => {
let isOpening = true;
spyOn(component, 'onFooterClick').and.callThrough();
let button = fixture.debugElement.nativeElement.querySelector('button'); // this is what i use on static dom elements
button.click();
fixture.whenStable().then(() => {
expect(component.onHeaderClick).toHaveBeenCalled();
});
});`