let refreshButton = await loader.getHarness(MatButtonHarness.with({ selector: '#refreshButton' }));
const jobsComponent: JobsListComponent = fixture.debugElement.query(By.directive(JobsListComponent)).componentInstance;
let refreshButton = await loader.getHarness(MatButtonHarness.with({ selector: '#refreshButton' }));
const jobsComponent: JobsListComponent = fixture.debugElement.query(By.directive(JobsListComponent)).componentInstance;
spyOn(jobsComponent, 'clearFilter');
const prodsComponent: ProducersListComponent = fixture.debugElement.query(By.directive(ProducersListComponent)).componentInstance;
spyOn(jobsComponent, 'clearFilter');
const prodsComponent: ProducersListComponent = fixture.debugElement.query(By.directive(ProducersListComponent)).componentInstance;
expect(jobsComponent.clearFilter).toHaveBeenCalled();
expect(prodsComponent.loadProducers).toHaveBeenCalled();
expect(prodsComponent.clearFilter).toHaveBeenCalled();
expect(jobsComponent.clearFilter).toHaveBeenCalled();
expect(prodsComponent.loadProducers).toHaveBeenCalled();
expect(prodsComponent.clearFilter).toHaveBeenCalled();