Skip to main content
Version: 1.x

Variable: BUILT_IN_OVERLAY_RULES

const BUILT_IN_OVERLAY_RULES: readonly OverlayRule[]

Overlay rules registered by default.

Remarks​

Deliberately minimal and strictly non-destructive. The one built-in turns an opaque "action timed out" into a named diagnosis — "a modal dialog reading Session Expiring blocked this click" — without answering the dialog.

Which overlays actually appear is highly system-specific (What's New, cookie consent, custom Z-dialogs), so dismissal rules belong in the consuming project rather than shipped as guesses.

Example​

import { BUILT_IN_OVERLAY_RULES } from '#fixtures/overlay-handler.js';

for (const rule of BUILT_IN_OVERLAY_RULES) {
await overlays.register(rule);
}