Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.46 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.46 KB

React browser tests

Consumer-owned Vite build produces app and gallery. Bazel compiles specs; Linux amd64 presets supply browser runtime and worker. Local module override tests this checkout. Omit it in project using released rules_web_e2e dependency.

Preset path

From this directory, on KVM/vsock-capable Linux host:

mkdir -p .web-e2e
bazel run --script_path="$PWD/.web-e2e/run" @rules_web_e2e//worker:runner
.web-e2e/run doctor
.web-e2e/run test //:e2e_test //:component_test //:native_config_test //:visual_test //:component_visual_test //:native_visual_test
.web-e2e/run run //:component_visual_test.update

Pass --bazel=bazelisk before operation if needed. No runtime.tar, host browser install, or handwritten remote-execution flags required. Review baseline changes after .update. Logs remain in .web-e2e/logs/.

Host path

After provisioning host Chromium:

bazel test //:host_e2e_test //:host_component_test //:host_native_config_test //:remote_integration_test

Host interaction targets omit browser. remote_integration_test owns temporary external server for remote_test; it exercises existing-URL API. host_visual_test opts in to local Linux VRT with declared browser runtime:

bazel test --nocache_test_results //:host_visual_test

For custom runtime assembly, see examples/browser-runtime and runtime guide.