mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-03 23:56:44 +02:00
GitGraph: added commit IDs to e2e test to remove false positives
Should stop randomised commit IDs from showing arbitrary differences between test runs.
This commit is contained in:
@@ -738,12 +738,12 @@ gitGraph TB:
|
|||||||
it('36: should render GitGraph with branch that is not used immediately', () => {
|
it('36: should render GitGraph with branch that is not used immediately', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph LR:
|
`gitGraph LR:
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
branch x
|
branch x
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
merge x
|
merge x
|
||||||
`,
|
`,
|
||||||
@@ -753,12 +753,12 @@ gitGraph TB:
|
|||||||
it('37: should render GitGraph with branch that is not used immediately | Vertical Branch', () => {
|
it('37: should render GitGraph with branch that is not used immediately | Vertical Branch', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph TB:
|
`gitGraph TB:
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
branch x
|
branch x
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
merge x
|
merge x
|
||||||
`,
|
`,
|
||||||
@@ -768,20 +768,20 @@ gitGraph TB:
|
|||||||
it('38: should render GitGraph with branch and sub-branch neither of which used immediately', () => {
|
it('38: should render GitGraph with branch and sub-branch neither of which used immediately', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph LR:
|
`gitGraph LR:
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
branch x
|
branch x
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
merge x
|
merge x
|
||||||
checkout x
|
checkout x
|
||||||
branch y
|
branch y
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"4-abcdefg"
|
||||||
checkout y
|
checkout y
|
||||||
commit
|
commit id:"5-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
merge y
|
merge y
|
||||||
`,
|
`,
|
||||||
@@ -791,20 +791,20 @@ gitGraph TB:
|
|||||||
it('39: should render GitGraph with branch and sub-branch neither of which used immediately | Vertical Branch', () => {
|
it('39: should render GitGraph with branch and sub-branch neither of which used immediately | Vertical Branch', () => {
|
||||||
imgSnapshotTest(
|
imgSnapshotTest(
|
||||||
`gitGraph TB:
|
`gitGraph TB:
|
||||||
commit
|
commit id:"1-abcdefg"
|
||||||
branch x
|
branch x
|
||||||
checkout main
|
checkout main
|
||||||
commit
|
commit id:"2-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"3-abcdefg"
|
||||||
checkout main
|
checkout main
|
||||||
merge x
|
merge x
|
||||||
checkout x
|
checkout x
|
||||||
branch y
|
branch y
|
||||||
checkout x
|
checkout x
|
||||||
commit
|
commit id:"4-abcdefg"
|
||||||
checkout y
|
checkout y
|
||||||
commit
|
commit id:"5-abcdefg"
|
||||||
checkout x
|
checkout x
|
||||||
merge y
|
merge y
|
||||||
`,
|
`,
|
||||||
|
Reference in New Issue
Block a user