mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 07:23:30 +08:00
Add a catch-all `MAP * ~NOTFOUND` to Chrome's --host-resolver-rules so any non-excluded host fails to resolve, instead of system specs reaching the real internet. Local/test hosts (the Capybara server, *.localhost, MinIO) are excluded. Unlike Playwright request interception this leaves the browser HTTP cache enabled. Specs that need an external host opt in with `allow_network: ["example.com"]`, which runs them in a dedicated browser with those hosts excluded from the block. |
||
|---|---|---|
| .. | ||
| fabricators | ||
| fixtures/json | ||
| jobs | ||
| models | ||
| requests | ||
| serializers | ||
| services | ||
| system | ||
| plugin_helper.rb | ||