Skip to content

Commit

Permalink
chore: Add test for gantt rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 26, 2023
1 parent 7cb1c2e commit 63f4a56
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cypress/integration/rendering/gantt.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,25 @@ describe('Gantt diagram', () => {
);
});

it('should render a gantt diagram with very large intervals, skipping excludes if interval > 5 years', () => {
imgSnapshotTest(
`gantt
title A long Gantt Diagram
dateFormat YYYY-MM-DD
axisFormat %m-%d
tickInterval 1day
excludes weekends
section Section
A task : a1, 9999-10-01, 30d
Another task : after a1, 20d
section Another
Task in sec : 2022-10-20, 12d
another task : 24d
`
);
});

it('should render when compact is true', () => {
imgSnapshotTest(
`
Expand Down

0 comments on commit 63f4a56

Please sign in to comment.