block_resources
Blocks specified URL patterns during browser navigation to simulate third-party outages and verify that core app content still loads and functions.
Instructions
Opens the browser, navigates to the user application, and blocks requests to specified URL patterns. Simulates third-party outages (analytics, CDNs, tracking) and verifies core content integrity. Use to answer: does the app still load and function if Google Analytics or a CDN is down?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to test | |
| wait_ms | No | Milliseconds to wait after navigation before checking core content (default: 2000) | |
| headless | No | Whether to run in headless mode (default: false, launches real browser so user sees application) | |
| viewport | No | Viewport size (default: 1280×720) | |
| block_patterns | Yes | Glob patterns for requests to block (e.g., ['**/analytics**', '*.doubleclick.net/**']) | |
| preview_delay_ms | No | Milliseconds to pause after simulation before closing browser, allowing visual inspection (default: 2000) | |
| keep_browser_open | No | Keep browser window open after test completes so user can interactively inspect the app (default: false) | |
| api_health_check_url | No | Optional backend or hosted API health check URL to verify before running chaos test. Aborts if backend is down or errors. | |
| core_content_selector | No | CSS selector for core content that must still be present (e.g., '.main-content') |