Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add note about workaround for tests hanging #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ You can pass list of browsers as a CLI argument too:
$ karma start --browsers Chrome,Chrome_without_security
```

## Hanging tests

When interactive (i.e. non-headless) Chrome is used, tests may appear to hang if the browser window is hidden or minimized, due to Chrome throttling tabs that are not in the foreground.

To work around the issue for the scenario where the browser window is hidden, use a custom launcher and pass the `--disable-backgrounding-occluded-windows` flag. There is currently no workaround for the case where the browser is minimized. See [#228](https://github.com/karma-runner/karma-chrome-launcher/issues/228) for more information.

## Headless Chromium with Puppeteer

The Chrome DevTools team created [Puppeteer](https://github.com/GoogleChrome/puppeteer) - it will automatically install Chromium for all
Expand Down