mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-29 09:23:32 +08:00
This CL fixes the lighthouse web tests sitting in the DevTools repo. The `GetStorageAndQuota` CDP method can fail now due to storage partitioning, so we have to account for that error. Another bug seems to be that changing the throttling drop down does not affect the underlying setting, so we change the test to massage the settings directly instead of poking the UI. Bug: None Change-Id: Ib7f4e3845722bde7dd1fd86b99896a8339414d87 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3769874 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
This folder is for Chrome-specific tests only. Tests that should work across browsers should be placed in third_party/blink/web_tests/external/wpt. When using the [integrated checkout workflow](https://chromium.googlesource.com/devtools/devtools-frontend/+/main/docs/workflows.md#Integrated-checkout), web tests from the DevTools repository can be run as via the following command: ```bash third_party/blink/tools/run_web_tests.py -t Default --layout-tests-directory=third_party/devtools-frontend/src/test/webtests/ http/tests/devtools/lighthouse/ ``` For more information about blink tests, please see the Chromium documentation on Web Tests (formerly known as "Layout Tests" or "LayoutTests"): https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_tests.md For more information about web platform tests, please see: https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md