diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.spec.ts b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.spec.ts index 76701f658b..a1981c17b2 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.spec.ts @@ -102,7 +102,7 @@ describe('ActivitiStartForm', () => { component.ngOnInit(); }); - it('should not show outcome buttons by default', () => { + it('should show outcome buttons by default', () => { getStartFormSpy.and.returnValue(Observable.of({ id: '1', processDefinitionName: 'my:process', @@ -114,7 +114,7 @@ describe('ActivitiStartForm', () => { component.processDefinitionId = exampleId1; component.ngOnInit(); fixture.detectChanges(); - expect(component.outcomesContainer).not.toBeTruthy(); + expect(component.outcomesContainer).toBeTruthy(); }); it('should show outcome buttons if showOutcomeButtons is true', () => { diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts index 14cd16c81a..bbf1cc07ef 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-start-form.component.ts @@ -39,8 +39,7 @@ import { WidgetVisibilityService } from './../services/widget-visibility.servic * * @Input * {processDefinitionId} string: The process definition ID - * {showOutcomeButtons} boolean: Whether form outcome buttons should be shown, as yet these don't do anything so this - * is false by default + * {showOutcomeButtons} boolean: Whether form outcome buttons should be shown, this is now always active to show form outcomes * @Output * {formLoaded} EventEmitter - This event is fired when the form is loaded, it pass all the value in the form. * {formSaved} EventEmitter - This event is fired when the form is saved, it pass all the value in the form. diff --git a/ng2-components/ng2-activiti-processlist/src/components/activiti-start-process.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/activiti-start-process.component.spec.ts index b6b833e34d..f57f4360d6 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/activiti-start-process.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/activiti-start-process.component.spec.ts @@ -171,7 +171,7 @@ describe('ActivitiStartProcessInstance', () => { component.onProcessDefChange('my:process1'); component.startProcess(); fixture.whenStable().then(() => { - expect(startProcessSpy).toHaveBeenCalledWith('my:process1', 'My new process', undefined); + expect(startProcessSpy).toHaveBeenCalledWith('my:process1', 'My new process', undefined, undefined); }); })); @@ -262,10 +262,10 @@ describe('ActivitiStartProcessInstance', () => { expect(getStartFormDefinitionSpy).toHaveBeenCalled(); }); - it('should leave start button disabled when mandatory fields not filled out', async(() => { + it('should not show the start process button', async(() => { component.name = 'My new process'; fixture.detectChanges(); - expect(startBtn.properties['disabled']).toBe(true); + expect(startBtn).toBeNull(); })); });