Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created March 25, 2020 16:29
Show Gist options
  • Save testingbot/91693ba374540a99a7e13e067b79a3a8 to your computer and use it in GitHub Desktop.
Save testingbot/91693ba374540a99a7e13e067b79a3a8 to your computer and use it in GitHub Desktop.
Jest + Puppeteer
import 'expect-puppeteer'
describe('Google', () => {
beforeAll(async () => {
await page.goto('https://google.com')
})
it('should display "google" text on page', async () => {
await expect(page).toMatch('google')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment