mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#1308 - fix test for PR
This commit is contained in:
@@ -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', () => {
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user