From 2acad550daa6f99df23d17010743a7bad6fa7588 Mon Sep 17 00:00:00 2001 From: Guy Pursey Date: Tue, 17 Oct 2023 08:30:27 +0100 Subject: [PATCH] GitGraph: e2e tests, added commit IDs to test graphs Followed practice of other tests so that commit IDs are stabilised (i.e., not randomly generated) and therefore don't show repeatedly in Cypress diff output screenshots --- .../integration/rendering/gitGraph.spec.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cypress/integration/rendering/gitGraph.spec.js b/cypress/integration/rendering/gitGraph.spec.js index 0ff4050ce..ea7b48407 100644 --- a/cypress/integration/rendering/gitGraph.spec.js +++ b/cypress/integration/rendering/gitGraph.spec.js @@ -704,14 +704,14 @@ gitGraph TB: it('34: should render a simple gitgraph with two branches from same commit', () => { imgSnapshotTest( `gitGraph - commit - commit + commit id:"1-abcdefg" + commit id:"2-abcdefg" branch feature-001 - commit - commit + commit id:"3-abcdefg" + commit id:"4-abcdefg" checkout main branch feature-002 - commit + commit id:"5-abcdefg" checkout feature-001 merge feature-002 `, @@ -721,14 +721,14 @@ gitGraph TB: it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => { imgSnapshotTest( `gitGraph TB: - commit - commit + commit id:"1-abcdefg" + commit id:"2-abcdefg" branch feature-001 - commit - commit + commit id:"3-abcdefg" + commit id:"4-abcdefg" checkout main branch feature-002 - commit + commit id:"5-abcdefg" checkout feature-001 merge feature-002 `,