mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 04:44:04 +08:00
This CL configures custom host resolver rules for the Chromium binary that puppeteer is using to run e2e test. With host resolver rules, all resources can now be loaded via arbitrary '.test' domains while still being served from localhost. E.g. an e2e test might navigate to 'devtools.test/foo.html' while also including an iframe with Url 'bar.test/iframe.html', with both files being served from localhost. This unlocks testing for a whole class of features that was previoulsy impossible to test. This CL also adds a new helper 'goToResourceWithCustomHost', that supplements the existing 'goToResource' with a modifiable host part. R=aerotwist@chromium.org, sigurds@chromium.org Bug: chromium:1177676 Change-Id: I1f51aa8419619e11352989457b24cc56cfc78e52 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2692148 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>