Added jest, jest-puppeteer and jest-image-snapshot for e2e tests

This commit is contained in:
Knut Sveidqvist
2019-05-30 19:27:27 +02:00
parent ee0cb8793f
commit 6974892a11
8 changed files with 529 additions and 28 deletions

View File

@@ -0,0 +1,10 @@
/* eslint-env jest */
describe('Google', () => {
beforeAll(async () => {
await page.goto('https://google.com')
})
it('should be titled "Google"', async () => {
await expect(page.title()).resolves.toMatch('Google')
})
})