mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 11:44:07 +01:00
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
This commit is contained in:
@@ -704,14 +704,14 @@ gitGraph TB:
|
|||||||
it('34: should render a simple gitgraph with two branches from same commit', () => {
|
it('34: should render a simple gitgraph with two branches from same commit', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph
|
`gitGraph
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
branch feature-001
|
branch feature-001
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
commit
|
commit id:"4-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
branch feature-002
|
branch feature-002
|
||||||
commit
|
commit id:"5-abcdefg"
|
||||||
checkout feature-001
|
checkout feature-001
|
||||||
merge feature-002
|
merge feature-002
|
||||||
`,
|
`,
|
||||||
@@ -721,14 +721,14 @@ gitGraph TB:
|
|||||||
it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => {
|
it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph TB:
|
`gitGraph TB:
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
branch feature-001
|
branch feature-001
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
commit
|
commit id:"4-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
branch feature-002
|
branch feature-002
|
||||||
commit
|
commit id:"5-abcdefg"
|
||||||
checkout feature-001
|
checkout feature-001
|
||||||
merge feature-002
|
merge feature-002
|
||||||
`,
|
`,
|
||||||
|
|||||||
Reference in New Issue
Block a user