Use case StRS-MDOKFSTUDIO-LIFE-005
The preview updates in place as the text and its dependencies change
As a writer, I see my unsaved changes in the preview as I type, and a quick burst of typing does not make the preview flicker; I change an included file, rename a file or change a setting and the open preview follows, without reloading the window or making the page jump.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: Typing updates the preview path 2: A dependency changes, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Typing updates the preview
- A preview shows a documentSwRS-MDOKFSTUDIO-LIFE-039 edits made during a render wait for itSwRS-MDOKFSTUDIO-LIFE-039 · 9 tests the text changes, saved or not, and a render of it is queued after a short pause
- A new render is doneSwRS-MDOKFSTUDIO-LIFE-071 a change of the page shell loads a new page document insteadSwRS-MDOKFSTUDIO-LIFE-094 an agent edit makes the updated blocks glow onceSwRS-MDOKFSTUDIO-LIFE-069 · 7 tests the page receives only the new content as a patch and applies it in place
- The page shows the new content in place
Path 2: A dependency changes
This map has 227 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 5 behaviours on the map are tested one by one, with 38 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-LIFE-004A long render never blocks the text editor, and a render that a newer edit supersedes stops not on the map3 testsSwRS-MDOKFSTUDIO-LIFE-032Refresh Preview renders the shown document again not on the map7 testsSwRS-MDOKFSTUDIO-LIFE-039Typing renders the new text after a short pause, without writing files 9 testsSwRS-MDOKFSTUDIO-LIFE-044Changes to files and settings the render depends on render again 5 testsSwRS-MDOKFSTUDIO-LIFE-049The status names the render state and shows pending, failed and recovered notices not on the map8 testsSwRS-MDOKFSTUDIO-LIFE-059The status region is a polite live region of plain text not on the map2 testsSwRS-MDOKFSTUDIO-LIFE-069A render of the loaded document updates the page in place 7 testsSwRS-MDOKFSTUDIO-LIFE-071A render that cannot patch loads a new page document 2 testsSwRS-MDOKFSTUDIO-LIFE-094Blocks changed by another tool glow briefly 6 tests
SwRS-MDOKFSTUDIO-LIFE-048A changed setting that the page reads only at startup loads a new page document deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-074The page refuses a patch whose status lines break the same bounds deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-081After a patch the page answers only to the new identifiers deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-082A patch with stale or malformed fields is ignored deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-089Equal blocks pair in document order and each kept node is used once deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-090Nodes the page added itself are never kept deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-091A block with a link has the same key on the first page and after a patch deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-093A document loaded from a patched record gets a fresh nonce deprecated deprecated Markdown file