Skip to content

Commit

Permalink
GitGraph: added 2x e2e tests for branches not used immediately
Browse files Browse the repository at this point in the history
My focus earlier on had been on relationship to `main` branch
so this is to ensure that we have some tests that cover
relationship between a pair of branches that doesn't
include `main`.
  • Loading branch information
guypursey committed Oct 24, 2023
1 parent 5813b81 commit abd00b4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions cypress/integration/rendering/gitGraph.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,4 +765,50 @@ gitGraph TB:
{}
);
});
it('38: should render GitGraph with branch and sub-branch neither of which used immediately', () => {
imgSnapshotTest(
`gitGraph LR:
commit
branch x
checkout main
commit
checkout x
commit
checkout main
merge x
checkout x
branch y
checkout x
commit
checkout y
commit
checkout x
merge y
`,
{}
);
});
it('39: should render GitGraph with branch and sub-branch neither of which used immediately | Vertical Branch', () => {
imgSnapshotTest(
`gitGraph TB:
commit
branch x
checkout main
commit
checkout x
commit
checkout main
merge x
checkout x
branch y
checkout x
commit
checkout y
commit
checkout x
merge y
`,
{}
);
});
});

0 comments on commit abd00b4

Please sign in to comment.