diff --git a/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-horizontal-diagram-1-snap.png b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-horizontal-diagram-1-snap.png new file mode 100644 index 0000000000..f109ec9f4f Binary files /dev/null and b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-horizontal-diagram-1-snap.png differ diff --git a/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-vertical-diagram-1-snap.png b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-vertical-diagram-1-snap.png new file mode 100644 index 0000000000..d9f2b14bb8 Binary files /dev/null and b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-vertical-diagram-1-snap.png differ diff --git a/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-flows-diagram-1-snap.png b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-flows-diagram-1-snap.png new file mode 100644 index 0000000000..51ecc80b7a Binary files /dev/null and b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-flows-diagram-1-snap.png differ diff --git a/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-labels-diagram-1-snap.png b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-labels-diagram-1-snap.png new file mode 100644 index 0000000000..4dd27d2308 Binary files /dev/null and b/test/e2e/__image_snapshots__/diagram-rendering-test-ts-no-diagram-visual-regression-load-options-horizontal-fit-with-outside-labels-diagram-1-snap.png differ diff --git a/test/e2e/diagram.rendering.test.ts b/test/e2e/diagram.rendering.test.ts index a8b5b6a229..61a94a38b1 100644 --- a/test/e2e/diagram.rendering.test.ts +++ b/test/e2e/diagram.rendering.test.ts @@ -31,12 +31,25 @@ describe('no diagram visual regression', () => { windows: 0.0035, }, ], + [ + 'vertical', + // minimal threshold to make test pass on Github Workflow + // ubuntu: Expected image to match or be a close match to snapshot but was 0.0019441198722769393% different from snapshot + // macOS: Expected image to match or be a close match to snapshot but was 0.0019441198722769393% different from snapshot + // windows: Expected image to match or be a close match to snapshot but was 0.0019441198722769393% different from snapshot + { + linux: 0.00002, + macos: 0.00002, + windows: 0.00002, + }, + ], ]), ); describe.each([ [FitType[FitType.None], FitType.None], [FitType[FitType.HorizontalVertical], FitType.HorizontalVertical], + [FitType[FitType.Horizontal], FitType.Horizontal], ])('load options: %s fit', async (fitTitle: string, fitType: FitType) => { const bpmnDiagramPreparation = new BpmnDiagramPreparation(new Map([]), { name: 'non-regression' }, 'diagram', { fitType }); const pageTester = new PageTester(bpmnDiagramPreparation, 'viewport', 'BPMN Visualization Non Regression');