trigger_system_network_error
Simulate system-level network errors like unreachable host or access denied by aborting matching requests, then verify your app's fallback behavior and recovery.
Instructions
Aborts requests matching a URL pattern with a system-level network error code, simulating OS-level failures like unreachable hosts or access denied. Use to answer: does the app recover when the DNS resolution fails or the OS rejects a connection?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to test | |
| wait_ms | No | Milliseconds to wait after navigation before checking fallback (default: 2000) | |
| viewport | No | Viewport size (default: 1280×720) | |
| error_code | Yes | System network error code: addressunreachable (DNS/routing failure), connectionaborted (mid-flight drop), accessdenied (firewall/OS block), aborted (generic abort) | |
| fallback_selector | No | CSS selector for the fallback UI that should appear (e.g., '.network-error') | |
| intercept_pattern | Yes | Glob pattern for requests to abort (e.g., '**/api/payment**') |