From be28003bdf552678ee39d42e84c10d215d348f75 Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 16 Aug 2024 11:38:40 -0700 Subject: [PATCH] Add integration tests --- cypress/integration/rendering/gantt.spec.js | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/cypress/integration/rendering/gantt.spec.js b/cypress/integration/rendering/gantt.spec.js index a0c2dbcb9e7..ab090a8911b 100644 --- a/cypress/integration/rendering/gantt.spec.js +++ b/cypress/integration/rendering/gantt.spec.js @@ -208,6 +208,36 @@ describe('Gantt diagram', () => { ); }); + it('should position a dateFormat-based today marker', () => { + imgSnapshotTest( + ` + gantt + title Reposition a today marker (using dateFormat) + dateFormat YYYY-MM-DD + today 2024-01-18 + section Project + A task :a1, 2024-01-01, 30d + Another task :after a1, 20d + `, + {} + ); + }); + + it('should position a duration-based today marker', () => { + imgSnapshotTest( + ` + gantt + title Reposition a today marker (using duration) + dateFormat x + axisFormat %L ms + today 19ms + section Section1 + A task: Draw 1: a1, 0, 28ms + `, + {} + ); + }); + it('should handle milliseconds', () => { imgSnapshotTest( `