cg_frame_audit
Audit game frames at boot and each scenario step across portal sizes to catch clipped windows, unreachable controls, small text, rewarded/no-ad button sizing, overflow, and phone scrollers.
Instructions
Measures the DOM in each portal frame size at boot, at every check step and at the end: windows inside the frame, reachable controls, rendered text size, rewarded vs no-ad button size, page overflow, scrollers without a custom bar on phones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| init | No | JS run in the game frame before its scripts, e.g. a debug flag | |
| path | Yes | Game root, its build folder (dist, build/web) or the release zip | |
| query | No | Appended to the game URL, e.g. ?debug=1 | |
| shots | No | Save a PNG of each failing point to the temp folder and return the paths | |
| sizes | No | WxH, m suffix for a touch phone | |
| steps | No | Run after boot, in the game frame: {click:selector} {tap:[x,y] viewport 0..1} {press:key,holdMs?} {wait:ms} {waitFor:selector,timeoutMs?} {eval:js} {check:label} {rewardedTwice:selector}. Default: steps of cg-scenario.json | |
| dialog | No | CSS selector of a window; default role=dialog, dialog[open], aria-modal | |
| engine | No | chromium | |
| minTextPx | No |