Skip to content

Instantly share code, notes, and snippets.

View sojungko's full-sized avatar

Sojung Park sojungko

View GitHub Profile
@sojungko
sojungko / integration-test-tips.md
Last active February 2, 2018 21:57
Helpful Tips for Writing Puppeteer-powered Integration Tests

Suggested Steps

  1. Ensure you have the following env variables in your local repo:
CHROME_HEADLESS=false
CHROME_EXECUTABLE=default

CHROME_HEADLESS=false will disable headless mode, enabling you to see browser action as it unfolds. This is obviously very helpful for debugging purposes. Without these environment variables, you will not be able to run any integration tests because puppeteer looks for these when launching Chromium!