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:
Guy Pursey 2023-10-27 11:05:33 +01:00
parent bf52e76a39
commit d80e1a2662
1 changed files with 16 additions and 16 deletions

View File

@ -738,12 +738,12 @@ gitGraph TB:
it('36: should render GitGraph with branch that is not used immediately', () => {
imgSnapshotTest(
`gitGraph LR:
commit
commit id:"1-abcdefg"
branch x
checkout main
commit
commit id:"2-abcdefg"
checkout x
commit
commit id:"3-abcdefg"
checkout main
merge x
`,
@ -753,12 +753,12 @@ gitGraph TB:
it('37: should render GitGraph with branch that is not used immediately | Vertical Branch', () => {
imgSnapshotTest(
`gitGraph TB:
commit
commit id:"1-abcdefg"
branch x
checkout main
commit
commit id:"2-abcdefg"
checkout x
commit
commit id:"3-abcdefg"
checkout main
merge x
`,
@ -768,20 +768,20 @@ gitGraph TB:
it('38: should render GitGraph with branch and sub-branch neither of which used immediately', () => {
imgSnapshotTest(
`gitGraph LR:
commit
commit id:"1-abcdefg"
branch x
checkout main
commit
commit id:"2-abcdefg"
checkout x
commit
commit id:"3-abcdefg"
checkout main
merge x
checkout x
branch y
checkout x
commit
commit id:"4-abcdefg"
checkout y
commit
commit id:"5-abcdefg"
checkout x
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', () => {
imgSnapshotTest(
`gitGraph TB:
commit
commit id:"1-abcdefg"
branch x
checkout main
commit
commit id:"2-abcdefg"
checkout x
commit
commit id:"3-abcdefg"
checkout main
merge x
checkout x
branch y
checkout x
commit
commit id:"4-abcdefg"
checkout y
commit
commit id:"5-abcdefg"
checkout x
merge y
`,