From c91ed34c5163fe51dd7718e249f0b731d87539fe Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 26 Apr 2023 18:34:10 -0400 Subject: [PATCH] run_pyl --- .../unit/test_process_instance_processor.py | 4 +--- .../src/routes/ProcessInterstitial.tsx | 13 +++++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py index 6dec5b28..bfda1eb3 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py @@ -348,9 +348,7 @@ class TestProcessInstanceProcessor(BaseTest): assert len(process_instance.human_tasks) == 1 spiff_manual_task = processor.bpmn_process_instance.get_task_from_id(UUID(human_task_one.task_id)) - assert ( - len(process_instance.active_human_tasks) == 1 - ), "expected 1 active human task" + assert len(process_instance.active_human_tasks) == 1, "expected 1 active human task" ProcessInstanceService.complete_form_task(processor, spiff_manual_task, {}, initiator_user, human_task_one) assert len(process_instance.human_tasks) == 2, "expected 2 human tasks after first one is completed" diff --git a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx index cb7dacce..b04f3198 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInterstitial.tsx @@ -103,7 +103,8 @@ export default function ProcessInterstitial() { const getReturnHomeButton = (index: number) => { if ( index === 0 && - ['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus())) + ['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus()) + ) return ( <>
@@ -189,7 +190,15 @@ export default function ProcessInterstitial() { {data.map((d, index) => ( -
{userMessage(d)}
+
+ {userMessage(d)} +
{getReturnHomeButton(index)}