mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-27 08:50:31 +00:00
run_pyl
This commit is contained in:
parent
e2b582b7fc
commit
d1fc75c877
@ -348,9 +348,7 @@ class TestProcessInstanceProcessor(BaseTest):
|
|||||||
assert len(process_instance.human_tasks) == 1
|
assert len(process_instance.human_tasks) == 1
|
||||||
|
|
||||||
spiff_manual_task = processor.bpmn_process_instance.get_task_from_id(UUID(human_task_one.task_id))
|
spiff_manual_task = processor.bpmn_process_instance.get_task_from_id(UUID(human_task_one.task_id))
|
||||||
assert (
|
assert len(process_instance.active_human_tasks) == 1, "expected 1 active human task"
|
||||||
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)
|
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"
|
assert len(process_instance.human_tasks) == 2, "expected 2 human tasks after first one is completed"
|
||||||
|
@ -103,7 +103,8 @@ export default function ProcessInterstitial() {
|
|||||||
const getReturnHomeButton = (index: number) => {
|
const getReturnHomeButton = (index: number) => {
|
||||||
if (
|
if (
|
||||||
index === 0 &&
|
index === 0 &&
|
||||||
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus()))
|
['WAITING', 'ERROR', 'LOCKED', 'COMPLETED'].includes(getStatus())
|
||||||
|
)
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
@ -189,7 +190,15 @@ export default function ProcessInterstitial() {
|
|||||||
{data.map((d, index) => (
|
{data.map((d, index) => (
|
||||||
<Grid fullWidth style={{ marginBottom: '1em' }}>
|
<Grid fullWidth style={{ marginBottom: '1em' }}>
|
||||||
<Column md={6} lg={6} sm={4}>
|
<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)}
|
{getReturnHomeButton(index)}
|
||||||
</Column>
|
</Column>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user