Skip to content

Commit

Permalink
GitGraph: added e2e tests for multiple branches from one commit
Browse files Browse the repository at this point in the history
  • Loading branch information
guypursey committed Oct 24, 2023
1 parent dbd6db4 commit 2ca083d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions cypress/integration/rendering/gitGraph.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,38 @@ gitGraph TB:
{}
);
});
it('34: should render a simple gitgraph with two branches from same commit', () => {
imgSnapshotTest(
`gitGraph
commit
commit
branch feature-001
commit
commit
checkout main
branch feature-002
commit
checkout feature-001
merge feature-002
`,
{}
);
});
it('35: should render a simple gitgraph with two branches from same commit | Vertical Branch', () => {
imgSnapshotTest(
`gitGraph
commit
commit
branch feature-001
commit
commit
checkout main
branch feature-002
commit
checkout feature-001
merge feature-002
`,
{}
);
});
});

0 comments on commit 2ca083d

Please sign in to comment.