diff --git a/e2e/process-services-cloud/process-custom-filters.e2e.ts b/e2e/process-services-cloud/process-custom-filters.e2e.ts index 9dc7dda83a..0da87e9f49 100644 --- a/e2e/process-services-cloud/process-custom-filters.e2e.ts +++ b/e2e/process-services-cloud/process-custom-filters.e2e.ts @@ -123,7 +123,7 @@ describe('Process list cloud', () => { }); }); - xit('[C291783] Should display processes ordered by id when Id is selected from sort dropdown', async () => { + it('[C291783] Should display processes ordered by id when Id is selected from sort dropdown', async () => { processCloudDemoPage.editProcessFilterCloudComponent().clickCustomiseFilterHeader().setStatusFilterDropDown('RUNNING') .setSortFilterDropDown('Id').setOrderFilterDropDown('ASC'); processCloudDemoPage.processListCloudComponent().getDataTable().checkSpinnerIsDisplayed().checkSpinnerIsNotDisplayed(); diff --git a/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.spec.ts index ccb5372b6b..65af081f40 100644 --- a/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/process/process-filters/components/edit-process-filter-cloud.component.spec.ts @@ -252,7 +252,7 @@ describe('EditProcessFilterCloudComponent', () => { })); }); - it('should able to filter filterProperties when input is defined', async(() => { + it('should be able to filter filterProperties when input is defined', async(() => { fixture.detectChanges(); component.filterProperties = ['appName', 'processName']; fixture.detectChanges(); @@ -261,7 +261,7 @@ describe('EditProcessFilterCloudComponent', () => { fixture.detectChanges(); fixture.whenStable().then(() => { fixture.detectChanges(); - expect(component.processFilterProperties.length).toEqual(1); + expect(component.processFilterProperties.length).toEqual(2); expect(component.processFilterProperties[0].key).toEqual('appName'); expect(component.processFilterProperties[1].key).toEqual('processName'); }); diff --git a/lib/process-services-cloud/src/lib/task/start-task/components/people-cloud/people-cloud.component.spec.ts b/lib/process-services-cloud/src/lib/task/start-task/components/people-cloud/people-cloud.component.spec.ts index 01a171afae..f2636fe43d 100644 --- a/lib/process-services-cloud/src/lib/task/start-task/components/people-cloud/people-cloud.component.spec.ts +++ b/lib/process-services-cloud/src/lib/task/start-task/components/people-cloud/people-cloud.component.spec.ts @@ -514,14 +514,15 @@ describe('PeopleCloudComponent', () => { })); it('should emit removeUser when a selected user is removed if mode=multiple', async(() => { - const removeUserSpy = spyOn(component.removeUser, 'emit'); + spyOn(component.removeUser, 'emit'); component.mode = 'multiple'; fixture.detectChanges(); fixture.whenStable().then(() => { fixture.detectChanges(); const removeIcon = fixture.debugElement.query(By.css('mat-chip mat-icon')); removeIcon.nativeElement.click(); - expect(removeUserSpy).toHaveBeenCalled(); + fixture.detectChanges(); + expect(component.removeUser.emit).toHaveBeenCalled(); }); }));