#927 Adding support for cypress and Percy

This commit is contained in:
Knut Sveidqvist
2019-09-11 18:53:05 +02:00
parent e37f5a6eb2
commit 9f87ab4941
84 changed files with 4795 additions and 62 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', () => {
const url = 'http://localhost:9000/webpackUsage.html'
await page.goto(url)
const image = await page.screenshot()
expect(image).toMatchImageSnapshot()
})
})