IO-2327 Intake checklist tests

This commit is contained in:
swtmply
2023-06-20 09:12:36 +08:00
parent aa064cc573
commit 7ae48db212
5 changed files with 183 additions and 11 deletions

View File

@@ -81,7 +81,7 @@ export function JobsChecklistViewContainer({
</Typography.Title>
{data.jobs_by_pk.intakechecklist &&
data.jobs_by_pk.intakechecklist.form && (
<>
<span data-cy="intake-checklist">
<JobChecklistForm
formItems={
data.jobs_by_pk.intakechecklist &&
@@ -92,7 +92,7 @@ export function JobsChecklistViewContainer({
readOnly
/>
<CompletedBy checklist={data.jobs_by_pk.intakechecklist} />
</>
</span>
)}
</Col>
<Col span={12}>
@@ -101,7 +101,7 @@ export function JobsChecklistViewContainer({
</Typography.Title>
{data.jobs_by_pk.deliverchecklist &&
data.jobs_by_pk.deliverchecklist.form && (
<>
<span data-cy="deliver-checklist">
<JobChecklistForm
formItems={
data.jobs_by_pk.deliverchecklist &&
@@ -112,7 +112,7 @@ export function JobsChecklistViewContainer({
readOnly
/>
<CompletedBy checklist={data.jobs_by_pk.deliverchecklist} />
</>
</span>
)}
</Col>
</Row>