Skip to content

Commit

Permalink
GitGraph: e2e tests, added commit IDs to test graphs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
guypursey committed Oct 24, 2023
1 parent 42e9f0f commit a8e544f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cypress/integration/rendering/gitGraph.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
`,
Expand All @@ -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
`,
Expand Down

0 comments on commit a8e544f

Please sign in to comment.