X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fei-coordinator%2Fei-coordinator.component.spec.ts;fp=webapp-frontend%2Fsrc%2Fapp%2Fei-coordinator%2Fei-coordinator.component.spec.ts;h=ae7ee402b5f04569adb25fd5e6fc62671910b733;hb=bb5dc44bd6f32f638e9bbcad960efc94b8ea78b8;hp=cdc1b8475b3a912b3e9405e28f92435bdef48db9;hpb=042a087cf3eea5e6f941ee9add6e1c50cb106e91;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts index cdc1b84..ae7ee40 100644 --- a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts +++ b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.spec.ts @@ -101,11 +101,15 @@ describe('EICoordinatorComponent', () => { it('should refresh tables', async () => { let refreshButton = await loader.getHarness(MatButtonHarness.with({ selector: '#refreshButton' })); spyOn(component.producersList, 'loadProducers'); + spyOn(component.producersList, 'clearFilter'); spyOn(component.jobComponent, 'loadJobs'); + spyOn(component.jobComponent, 'clearFilter'); await refreshButton.click(); expect(component.jobComponent.loadJobs).toHaveBeenCalled(); + expect(component.jobComponent.clearFilter).toHaveBeenCalled(); expect(component.producersList.loadProducers).toHaveBeenCalled(); + expect(component.producersList.clearFilter).toHaveBeenCalled(); }); }); @@ -121,6 +125,7 @@ describe('EICoordinatorComponent', () => { }) class JobsListStubComponent { loadJobs() { } + clearFilter() { } } @Component({ @@ -135,6 +140,7 @@ describe('EICoordinatorComponent', () => { }) class ProducerListStubComponent { loadProducers() { } + clearFilter() { } } });