From 90d187c48a5633767c7e98638e9ce016232a0378 Mon Sep 17 00:00:00 2001 From: ashishj Date: Tue, 7 Jun 2022 18:52:38 +0200 Subject: [PATCH] #3080 Added rendering test cases --- .../integration/rendering/gitGraph.spec.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/cypress/integration/rendering/gitGraph.spec.js b/cypress/integration/rendering/gitGraph.spec.js index b109c4e7ea..7242c05dd1 100644 --- a/cypress/integration/rendering/gitGraph.spec.js +++ b/cypress/integration/rendering/gitGraph.spec.js @@ -131,4 +131,33 @@ describe('Git Graph diagram', () => { {} ); }); + + it('9: should render a simple gitgraph with rotated labels', () => { + imgSnapshotTest( + `%%{init: { 'logLevel': 'debug', 'theme': 'default' , 'gitGraph': { + 'rotateCommitLabel': true + } } }%% + gitGraph + commit id: "75f7219e83b321cd3fdde7dcf83bc7c1000a6828" + commit id: "0db4784daf82736dec4569e0dc92980d328c1f2e" + commit id: "7067e9973f9eaa6cd4a4b723c506d1eab598e83e" + commit id: "66972321ad6c199013b5b31f03b3a86fa3f9817d" + `, + {} + ); + }); + it('10: should render a simple gitgraph with horizontal labels', () => { + imgSnapshotTest( + `%%{init: { 'logLevel': 'debug', 'theme': 'default' , 'gitGraph': { + 'rotateCommitLabel': false + } } }%% + gitGraph + commit id: "Alpha" + commit id: "Beta" + commit id: "Gamma" + commit id: "Delta" + `, + {} + ); + }); });