From 81f790845dda84b53392e2369e6061f0e52e5aea Mon Sep 17 00:00:00 2001 From: andrei draganescu Date: Thu, 21 Feb 2019 11:08:55 +0200 Subject: [PATCH] Added a snippet for observing the browser when running e2e tests (#13993) * Added a snippet for observing the browser when running e2e tests --- docs/contributors/testing-overview.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/contributors/testing-overview.md b/docs/contributors/testing-overview.md index 7d0d01921a6a5..6992bd664c3ec 100644 --- a/docs/contributors/testing-overview.md +++ b/docs/contributors/testing-overview.md @@ -356,6 +356,12 @@ or interactively npm run test-e2e:watch ``` +Sometimes it's useful to observe the browser while running tests. To do so you can use these environment variables: + +```bash +PUPPETEER_HEADLESS=false PUPPETEER_SLOWMO=80 npm run test-e2e:watch +``` + If you're using a different setup, you can provide the base URL, username and password like this: ```bash