Created
March 25, 2020 16:29
-
-
Save testingbot/91693ba374540a99a7e13e067b79a3a8 to your computer and use it in GitHub Desktop.
Jest + Puppeteer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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