# Document, note, template

**Test family:** `DOC`

- **DOC-001** Create/edit/save/reopen plain and formatted content; compare editor, rendered view, print, email, and export.
- **DOC-002** Autosave and explicit save do not race; status reflects durable version.
- **DOC-003** Concurrent edits preserve, merge, or conflict visibly; no silent last-write loss.
- **DOC-004** Version history records actor/time/change, restores a new version, and retains access policy.
- **DOC-005** Links, mentions, embeds, attachments, comments, and references survive rename/move/archive/restore.
- **DOC-006** Shared content does not expose drafts, comments, history, hidden fields, or unauthorized referenced objects.
- **DOC-007** Template variables handle missing/null/empty, wrong type, list, nested value, formatting, escaping, and unknown variable.
- **DOC-008** Template preview and final output use the same version/data/time zone and do not allow injection.

## Comprehensive per-item coverage

- **DOC-009** Create absent, empty, ordinary, boundary-size, and over-limit content; distinguish missing data, empty content, and intentionally blank content.
- **DOC-010** Use ASCII emoticons such as `:)`, `:-)`, `;)`, `:D`, `:(`, and `<3`; preserve them exactly or reject them with a specific product rule.
- **DOC-011** Use kaomoji and complex emoji including skin tones, flags, keycaps, variation selectors, and ZWJ sequences; preserve complete graphemes.
- **DOC-012** Use accents, decomposed forms, CJK, Arabic, Hebrew, mixed direction, confusables, and invisible characters; keep rendering and identity unambiguous.
- **DOC-013** Use long words, many short lines, one long line, tabs, mixed line endings, trailing spaces, and control characters through every supported transport.
- **DOC-014** Use inert HTML/script, Markdown, template, SQL, command, path, CSV-formula, header, and log-forging canaries; never execute content as control.
- **DOC-015** Compare typing, paste, rich paste, upload, import, API, mobile, automation, and migration paths; apply the same content contract.
- **DOC-016** Save, preview, reopen, edit, copy, quote, reply, forward, notify, search, index, export, and delete; preserve intended content and access.
- **DOC-017** Verify content encoding, charset declaration, BOM, compression, chunking, multipart boundaries, and transcoding do not corrupt data.
- **DOC-018** Attempt access as owner, collaborator, removed member, external guest, anonymous viewer, and another tenant; reauthorize every delivery path.
- **DOC-019** Change access after a link, preview, notification, or cached representation exists; revoke stale copies where the contract promises it.
- **DOC-020** Edit concurrently, retry after timeout, and resubmit the same content; avoid silent overwrite, duplicates, and reordered versions.
- **DOC-021** Force storage, scanner, renderer, indexer, notification, export, and downstream integration failures; expose partial state and recovery.
- **DOC-022** Test keyboard, screen reader, zoom, reflow, high contrast, reduced motion, captions/alternatives, and focus for creating and consuming content.
- **DOC-023** Translate UI and content, switch locale and direction, and render unsupported glyphs; preserve data even when fonts or layout degrade.
- **DOC-024** Measure create, upload, render, search, download, and delete latency at normal and supported boundary sizes.
- **DOC-025** Inspect URLs, metadata, filenames, previews, logs, telemetry, caches, backups, notifications, and exports for sensitive-content leakage.
- **DOC-026** Apply malware, abuse, spam, moderation, and policy handling without exposing scanner details or destroying innocent content silently.
- **DOC-027** Delete, restore, expire, retain, place on hold, export, and purge content; make user-visible state match storage and legal policy.
- **DOC-028** Verify hashes, sizes, versions, ownership, timestamps, and audit events across replicas and transformations so corruption is detectable.

[Back to Files, content, import/export, and messaging index](../../files-content-messaging.md)
