This commit is contained in:
Dan 2023-04-26 18:34:10 -04:00
parent fabe9aa320
commit c91ed34c51
2 changed files with 12 additions and 5 deletions

View File

@ -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"

View File

@ -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 (
<>
<br />
@ -189,7 +190,15 @@ export default function ProcessInterstitial() {
{data.map((d, index) => (
<Grid fullWidth style={{ marginBottom: '1em' }}>
<Column md={6} lg={6} sm={4}>
<div className={index < 4? `user_instructions_${index}` : `user_instructions_4`}>{userMessage(d)}</div>
<div
className={
index < 4
? `user_instructions_${index}`
: `user_instructions_4`
}
>
{userMessage(d)}
</div>
{getReturnHomeButton(index)}
</Column>
</Grid>