Cookie rehearsal verification
Requirement: REQ-PRODUCT-CONSENT-REHEARSAL.
Tests exercise the actual native controls and consent engine with a detached public draft, inert enrolled service callbacks and private in-memory choice storage. Rejection survives a simulated return; a granular grant starts only its allowed simulated service; a shared-purpose service waits for all its purposes; withdrawal stops it. Unknown scope guards remain restrictive. Selected localization renders through the actual controls. Original config/report data, real browser choice storage and provider/receipt transports remain unchanged.
Style failure exposes no usable controls. Delayed stylesheet completion cannot revive a closed run or disable controls belonging to a later run. Disposal closes owned dialogs, removes the frame and stops callbacks and timers. Outside/help links are inert, including auxiliary clicks. Setup invalidation destroys the preview and an asynchronous module load cannot open a stale draft. The optional public export includes strict installed declarations.
The project website and CF starter keep the rehearsal in a separate lazy module. New starter assets require the existing host configuration permission and appear in local doctor checks. The rehearsal frame is script-disabled and permits only same-origin stylesheet resources; native-browser checks supplement JSDOM lifecycle tests because frame layout, native modal behavior, focus and contrast require a real browser. This does not verify an adopter’s actual providers, receipt mode, processing restrictions, publication or legal review.
Chromium desktop and phone checks confirmed the configured notice stays inside the frame, a granular choice starts only its simulated service, and a simulated return preserves that choice. Escape closes child preferences first and then the rehearsal, removing its frame and restoring focus to the setup action. At a 390 × 844 viewport, document/client widths matched at 375px. A compact live count keeps simulated activity visible above the frame when the detailed list is below it. The saved setup-session regression restores a fresh rehearsal, with no preview decisions in its draft.