mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-36335 Handle custom redirects (#11167)
This commit is contained in:
@@ -347,7 +347,7 @@ describe('FormComponent', () => {
|
||||
const result = formComponent.onOutcomeClicked(outcome);
|
||||
expect(result).toBeTruthy();
|
||||
expect(saved).toBeFalse();
|
||||
expect(formComponent.completeTaskForm).toHaveBeenCalledWith(outcomeName);
|
||||
expect(formComponent.completeTaskForm).toHaveBeenCalledWith(outcomeName, outcome.id);
|
||||
});
|
||||
|
||||
it('should save form on [save] outcome click', () => {
|
||||
@@ -707,7 +707,7 @@ describe('FormComponent', () => {
|
||||
const result = formComponent.onOutcomeClicked(outcome);
|
||||
expect(result).toBeTruthy();
|
||||
|
||||
expect(formComponent.completeTaskForm).toHaveBeenCalledWith(outcome.name);
|
||||
expect(formComponent.completeTaskForm).toHaveBeenCalledWith(outcome.name, outcome.id);
|
||||
});
|
||||
|
||||
it('should check visibility only if field with form provided', () => {
|
||||
|
||||
Reference in New Issue
Block a user