← Craft adatlapja
AgentCraft

Skill · 1.0.0 verzió

Szerkesztő életciklustesztje

Egy teljes dokumentuméletciklusként vizsgálja a szerkesztést, visszavonást, beillesztést, mentést és újratöltést.

editor-verification

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha szerkesztőváltoztatásnak megszakításokon át meg kell őriznie a tartalmat.

Miben segít neked?

  • Szerkezeti műveletek után ellenőrzi a sémát és kijelölést.
  • Vizsgálja a visszavonás azonosságát és veszélyes beillesztés szűrését.
  • Teszteli a felcserélt mentéseket, hálózatvesztést és újratöltési egyezést.

Például ezt kérheted

Tesztelj beillesztést, módosítást, visszavonást és újratöltést, miközben az első mentés válasza később érkezik. A késői válasz után töltsd újra a mentett adatot. A legújabb dokumentum és megtisztított tartalom egyezzen az újratöltés előtti látható állapottal.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

Editor Verification

Use this skill when testing and verifying visual editors, block editors, drag-and-drop workspaces, and document persistence flows.

Full Editing Lifecycle Verification

Isolated unit tests on helper functions miss interaction bugs between selection, DOM rendering, history, and autosave. Verify the complete editing chain: $$\text{Create} \to \text{Edit} \to \text{Reorder / Nest} \to \text{Duplicate / Paste} \to \text{Delete} \to \text{Undo / Redo} \to \text{Autosave} \to \text{Reload}$$

  1. Structural & Schema Invariant Checks:
    • After every editing command (split, merge, move, indent/outdent, duplicate, delete), assert that:
      • All block IDs in the document are unique and non-empty.
      • Parent-child nesting conforms to the document schema.
      • Serializing and re-parsing the document produces the exact same structure.
  2. Selection, Keyboard & Accessibility Checks:
    • Verify keyboard-only operation: creating blocks, moving between blocks with arrow keys, invoking commands, reordering blocks via keyboard alternatives, and restoring focus after closing popovers/modals.
    • Verify that IME composition (compositionstart / compositionend) and accented character input do not drop characters or trigger premature block transforms.
  3. Undo/Redo Equivalence Checks:
    • After a multi-step sequence of edits $S_0 \xrightarrow{T_1} S_1 \xrightarrow{T_2} S_2$, verify that undo() yields document state $S_1$, a second undo() yields $S_0$, and redo() yields $S_1 \to S_2$ with valid selection and without polluting history during autosave.
  4. Adversarial Clipboard & Sanitization Checks:
    • Test pasting malformed HTML, deeply nested Word/Google Docs markup, <script>/onerror/javascript: payloads, and plain text with newlines; verify clean schema normalization and zero XSS execution.
  5. Network Interruption, Out-of-Order Save & Reload Checks:
    • Simulate edits while a save request is delayed (saving), edit again before the first response returns, and assert the newer edit is not overwritten and eventually reaches saved.
    • Simulate a failed save (500 / offline) followed by page reload or 409 Conflict, and verify that local draft recovery and conflict handling preserve user work without silent data loss.

Checklist

  • Has the full chain (create, edit, reorder, duplicate, delete, undo/redo, save, reload) been verified end to end?
  • Are unique block IDs, schema validity, and selection placement asserted after structural commands?
  • Are keyboard reordering alternatives and hostile clipboard paste payloads tested?
  • Are concurrent edits during in-flight saves, offline failures, and 409 version conflicts tested?

Csomagban lévő fájlok 1

  • SKILL.md