From e3df38e078d09e0da700f26216298422c0b1292b Mon Sep 17 00:00:00 2001 From: ashishj Date: Tue, 7 Jun 2022 20:52:52 +0200 Subject: [PATCH] #3080 Added more rendering test for cherry pick functionality --- .../integration/rendering/gitGraph.spec.js | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/cypress/integration/rendering/gitGraph.spec.js b/cypress/integration/rendering/gitGraph.spec.js index c1846ede5c..4dda2c16ed 100644 --- a/cypress/integration/rendering/gitGraph.spec.js +++ b/cypress/integration/rendering/gitGraph.spec.js @@ -180,4 +180,31 @@ describe('Git Graph diagram', () => { {} ); }); + + it('11: should render a simple gitgraph with two cherry pick commit', () => { + imgSnapshotTest( + ` + gitGraph + commit id: "ZERO" + branch develop + commit id:"A" + checkout main + commit id:"ONE" + checkout develop + commit id:"B" + branch featureA + commit id:"FIX" + commit id: "FIX-2" + checkout main + commit id:"TWO" + cherry-pick id:"A" + commit id:"THREE" + cherry-pick id:"FIX" + checkout develop + commit id:"C" + merge featureA + `, + {} + ); + }); });