AAE-36335 Handle custom redirects (#11167)

This commit is contained in:
Enrico Hilgendorf
2025-09-15 12:05:53 +02:00
committed by GitHub
parent 3a1020ea7b
commit 82f96d9510
11 changed files with 180 additions and 32 deletions
@@ -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', () => {