Skip to content

Commit 7922dc9

Browse files
committed
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
1 parent 7400222 commit 7922dc9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cypress/integration/rendering/gitGraph.spec.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -704,14 +704,14 @@ gitGraph TB:
704704
it('34: should render a simple gitgraph with two branches from same commit', () => {
705705
imgSnapshotTest(
706706
`gitGraph
707-
commit
708-
commit
707+
commit id:"1-abcdefg"
708+
commit id:"2-abcdefg"
709709
branch feature-001
710-
commit
711-
commit
710+
commit id:"3-abcdefg"
711+
commit id:"4-abcdefg"
712712
checkout main
713713
branch feature-002
714-
commit
714+
commit id:"5-abcdefg"
715715
checkout feature-001
716716
merge feature-002
717717
`,
@@ -721,14 +721,14 @@ gitGraph TB:
721721
it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => {
722722
imgSnapshotTest(
723723
`gitGraph TB:
724-
commit
725-
commit
724+
commit id:"1-abcdefg"
725+
commit id:"2-abcdefg"
726726
branch feature-001
727-
commit
728-
commit
727+
commit id:"3-abcdefg"
728+
commit id:"4-abcdefg"
729729
checkout main
730730
branch feature-002
731-
commit
731+
commit id:"5-abcdefg"
732732
checkout feature-001
733733
merge feature-002
734734
`,

0 commit comments

Comments
 (0)