Skip to content

Commit

Permalink
#3080 Added rendering test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjain0512 committed Jun 7, 2022
1 parent 1851e81 commit 90d187c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions cypress/integration/rendering/gitGraph.spec.js
Expand Up @@ -131,4 +131,33 @@ describe('Git Graph diagram', () => {
{}
);
});

it('9: should render a simple gitgraph with rotated labels', () => {
imgSnapshotTest(
`%%{init: { 'logLevel': 'debug', 'theme': 'default' , 'gitGraph': {
'rotateCommitLabel': true
} } }%%
gitGraph
commit id: "75f7219e83b321cd3fdde7dcf83bc7c1000a6828"
commit id: "0db4784daf82736dec4569e0dc92980d328c1f2e"
commit id: "7067e9973f9eaa6cd4a4b723c506d1eab598e83e"
commit id: "66972321ad6c199013b5b31f03b3a86fa3f9817d"
`,
{}
);
});
it('10: should render a simple gitgraph with horizontal labels', () => {
imgSnapshotTest(
`%%{init: { 'logLevel': 'debug', 'theme': 'default' , 'gitGraph': {
'rotateCommitLabel': false
} } }%%
gitGraph
commit id: "Alpha"
commit id: "Beta"
commit id: "Gamma"
commit id: "Delta"
`,
{}
);
});
});

0 comments on commit 90d187c

Please sign in to comment.