aeat.adapters.outbound.aeat.browser.health module¶
Smoke-check entry point for the Playwright browser setup.
The health check constructs the production
default_browser_session_factory(), opens a browser context, and navigates
through adapters.outbound.aeat.browser.BrowserSession.navigate().
It verifies the local Playwright/browser installation path rather than the AEAT
site-health parser corpus; parser classifications are represented separately by
adapters.outbound.aeat.browser.SiteHealthStatus.
- async run_health_check()[source]¶
Run a smoke test to verify Playwright installation and evasion patches.
The check uses
default_browser_session_factory()so failures exercise the same optionalbrowserextra,BrowserErrorwrapping, evasion, context creation, and navigation path used by production auth and Sede readers.- Raises:
BrowserError – If the health check fails.
- Return type:
- main()[source]¶
Run
run_health_check()from synchronous callers.- Return type: