From f587a1f0fce08a5bef0478a82ff3ad1d9e75d6e7 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Mon, 30 Dec 2024 01:03:35 -0500 Subject: [PATCH] chore: fix Composite example flaky Cypress test --- src/app/examples/grid-composite-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/examples/grid-composite-editor.component.ts b/src/app/examples/grid-composite-editor.component.ts index 466f4b29f..ffa98cced 100644 --- a/src/app/examples/grid-composite-editor.component.ts +++ b/src/app/examples/grid-composite-editor.component.ts @@ -583,7 +583,7 @@ export class GridCompositeEditorComponent implements OnDestroy, OnInit { finish: isCompleted || (i % 3 === 0 && randomFinish > new Date() && i > 3) ? (isCompleted ? new Date() : randomFinish) : '', // make sure the random date is earlier than today and it's index is bigger than 3 cost: i % 33 === 0 ? null : Math.round(Math.random() * 10000) / 100, - completed: isCompleted || (i % 3 === 0 && randomFinish > new Date() && i > 3), + completed: (isCompleted && i > 5) || (i % 3 === 0 && randomFinish > new Date() && i > 3), product: { id: this.mockProducts()[randomItemId]?.id, itemName: this.mockProducts()[randomItemId]?.itemName }, origin: i % 2 ? { code: 'CA', name: 'Canada' } : { code: 'US', name: 'United States' }, };