Skip to content
HomePagesHomePages template kit

CaptureSettleHost

The browser-driver seam {@link settleCapture} needs, as the two capabilities it actually uses.

The browser-driver seam {@link settleCapture} needs, as the two capabilities it actually uses. Structural on purpose: this package may not depend on Playwright (the render worker and the CLI each own their driver), and a two-method seam is one a test can implement exactly.

Import from @homepages/template-kit.

export interface CaptureSettleHost {
evaluate(expression: string): Promise<unknown>;
onNetworkActivity(listener: () => void): () => void;
}