Skip to content

Commit

Permalink
Merge pull request #1515 from ghiscoding/chore/flaky-example30
Browse files Browse the repository at this point in the history
chore: fix Composite example flaky Cypress test
  • Loading branch information
ghiscoding authored Dec 30, 2024
2 parents 847022c + f587a1f commit 84ea0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/examples/grid-composite-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
};
Expand Down

0 comments on commit 84ea0b7

Please sign in to comment.