# Camera, microphone, recording

**Test family:** `CAP`

- **CAP-001** Permission prompt follows an explicit user action and explains purpose before browser consent.
- **CAP-002** Allow/deny/dismiss/block/revoke/no-device/device-busy states have a non-dead-end recovery.
- **CAP-003** Select/switch device, unplug/replug, input level, mute, front/back camera, rotation, and mirroring.
- **CAP-004** Start/pause/resume/stop/cancel recording near boundaries produces one playable intended artifact.
- **CAP-005** Page close/crash/network loss/storage limit/permission revoke cleans recording indicator and partial data safely.
- **CAP-006** Recording consent, indicator, retention, download/share, transcript, and deletion match privacy policy.
- **CAP-007** Background tabs/hidden iframe/unauthorized user cannot activate capture.

## Comprehensive per-item coverage

- **CAP-008** Exercise unavailable, permission-denied, idle, initializing, active, paused, completed, canceled, failed, and recovered states.
- **CAP-009** Use adjacent names, captions, metadata, or pasted text containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, RTL, combining marks, and long values.
- **CAP-010** Start through pointer, keyboard, touch, switch, voice, automation, and supported device controls; expose equivalent state and one action.
- **CAP-011** Deny, grant, revoke, and change OS/browser permission while idle and active; explain consequences and stop access promptly.
- **CAP-012** Disconnect, reconnect, sleep/wake, background/foreground, rotate, resize, switch devices, and change network quality during use.
- **CAP-013** Force unsupported format, codec, capability, device, browser, version, and hardware acceleration; fall back truthfully.
- **CAP-014** Use empty, tiny, ordinary, boundary-size, malformed, truncated, corrupt, and adversarial inputs without crash or unbounded work.
- **CAP-015** Use inert markup, script, URL, path, filename, metadata, template, and structured-payload canaries; isolate untrusted content.
- **CAP-016** Attempt cross-origin, cross-tenant, unauthorized, sandbox escape, clipboard, device, and local-resource access; enforce least privilege.
- **CAP-017** Double-start, double-stop, repeat, retry after timeout, and race two sessions or devices; prevent duplicate work and state confusion.
- **CAP-018** Navigate away, refresh, crash, restore, expire the session, and resume offline/online; define preservation, cleanup, and recovery.
- **CAP-019** Verify keyboard path, accessible role/name/state, focus, announcements, captions/alternatives, contrast, reflow, target size, and reduced motion.
- **CAP-020** Test locale, RTL, translated/long labels, input methods, regional formats, and unsupported glyphs without corrupting data.
- **CAP-021** Measure initialization, interaction, processing, rendering, memory, CPU/GPU, battery, bandwidth, and cleanup at normal and boundary load.
- **CAP-022** Inspect DOM, device buffers, temporary files, caches, URLs, logs, telemetry, crash reports, previews, and exports for sensitive leakage.
- **CAP-023** Stop, cancel, undo, clear, delete, and revoke; release devices, handles, workers, object URLs, temporary data, and permissions.
- **CAP-024** Change access or ownership after content is loaded or a capability is granted; reauthorize before save, share, export, or commit.
- **CAP-025** Verify telemetry and audit identify capability, actor, target, permission decision, duration, failure, retry, and cleanup without recording sensitive payload.
- **CAP-026** Test concurrent components competing for the same device, shortcut, clipboard, focus, storage, worker, or media resource.
- **CAP-027** Recover from renderer, worker, process, device, storage, and network failure without false success, orphaned capture, or unrecoverable data loss.

[Back to Specialized controls and system surfaces index](../../specialized-controls.md)
