Added test of usage via webpack to the e2e tests

This commit is contained in:
Knut Sveidqvist
2019-06-09 06:49:40 -07:00
parent c6abc43ca5
commit 2f7da8b577
16 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
/* eslint-env jest */
const { toMatchImageSnapshot } = require('jest-image-snapshot')
expect.extend({ toMatchImageSnapshot })
describe('Sequencediagram', () => {
it('should render a simple sequence diagrams', async () => {
const url = 'http://localhost:9000/webpackUsage.html'
await page.goto(url)
const image = await page.screenshot()
expect(image).toMatchImageSnapshot()
})
})