Added e2e tests and snapshot files

This commit is contained in:
Knut Sveidqvist
2019-06-01 19:21:15 +02:00
parent 357e738983
commit 86fcbf9c5e
20 changed files with 414 additions and 15 deletions

29
e2e/spec/gitGraph.spec.js Normal file
View File

@@ -0,0 +1,29 @@
/* eslint-env jest */
import { imgSnapshotTest } from '../helpers/util.js'
const { toMatchImageSnapshot } = require('jest-image-snapshot')
expect.extend({ toMatchImageSnapshot })
describe('Sequencediagram', () => {
it('should render a simple git graph', async () => {
await imgSnapshotTest(page, `
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
commit
branch newbranch
checkout newbranch
commit
commit
checkout master
commit
commit
merge newbranch
`,
{})
})
})