Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-LIFE-039: Typing renders the new text after a short pause, without writing filesSwRS-MDOKFSTUDIO-LIFE-0399 teststhe text changes, saved or not,and a render of it is queued aftera short pauseSwRS-MDOKFSTUDIO-LIFE-069: A render of the loaded document updates the page in placeSwRS-MDOKFSTUDIO-LIFE-0697 teststhe page receives only the newcontent as a patch and applies itin placeSwRS-MDOKFSTUDIO-LIFE-044: Changes to files and settings the render depends on render againSwRS-MDOKFSTUDIO-LIFE-0445 testsa file the render depends onchanges, or a Studio, plantuml orfrontmatter setting changes, andthe page renders again or isbrought up to dateSwRS-MDOKFSTUDIO-LIFE-039: Typing renders the new text after a short pause, without writing filesSwRS-MDOKFSTUDIO-LIFE-0399 testsedits made during a renderwait for itSwRS-MDOKFSTUDIO-LIFE-044: Changes to files and settings the render depends on render againSwRS-MDOKFSTUDIO-LIFE-0445 testsevents below build and toolfolders are ignoredSwRS-MDOKFSTUDIO-LIFE-071: A render that cannot patch loads a new page documentSwRS-MDOKFSTUDIO-LIFE-0712 testsa change of the page shell loads a new page document insteadSwRS-MDOKFSTUDIO-LIFE-094: Blocks changed by another tool glow brieflySwRS-MDOKFSTUDIO-LIFE-0946 testsan agent edit makes the updated blocks glow onceA preview shows a document (paths 1, 2)A preview shows adocument2A new render is done (paths 1, 2)A new render is doneThe page shows the new content in placeThe page shows the newcontent in place

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