Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-CORE-003

A reader sees what cannot be rendered and keeps a usable preview

Writers need to know what the preview leaves out, so that a gap is never mistaken for an empty result, and need the preview to stay trustworthy while they type and when something goes wrong.

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: A render fails after a good one path 2: A construct needs a full build, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-CORE-025: A failed render keeps the previous page and lists its diagnosticsSwRS-MDOKFSTUDIO-CORE-0254 teststhe next render fails and thestatus region lists eachdiagnostic while the previous pagestaysSwRS-MDOKFSTUDIO-CORE-022: Build-dependent constructs show an inert placeholder with a warningSwRS-MDOKFSTUDIO-CORE-0226 testsan unknown directive or anotherconstruct that only a buildresolves shows an inertplaceholder with a warningSwRS-MDOKFSTUDIO-CORE-025: A failed render keeps the previous page and lists its diagnosticsSwRS-MDOKFSTUDIO-CORE-0254 teststhe very first render failsSwRS-MDOKFSTUDIO-CORE-008: Images fit the column, sit on the line and survive a missing fileSwRS-MDOKFSTUDIO-CORE-0084 testsan image whose file is missing is keptThe preview shows a good render (paths 1, 2)The preview shows a goodrender2The last good page stays with the diagnostics listedThe last good page stayswith the diagnosticslistedA placeholder with a warning stands in its placeA placeholder with awarning stands in itsplace

This map has 12 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 15 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-CORE-001The preview renders the unsaved buffer in process and keeps the newest edit not on the map3 testsSwRS-MDOKFSTUDIO-CORE-008Images fit the column, sit on the line and survive a missing file 4 testsSwRS-MDOKFSTUDIO-CORE-012An include is expanded in place and mapped to its directive not on the map3 testsSwRS-MDOKFSTUDIO-CORE-013Includes are bounded by depth, budget, size and allowed roots not on the map9 testsSwRS-MDOKFSTUDIO-CORE-022Build-dependent constructs show an inert placeholder with a warning 6 testsSwRS-MDOKFSTUDIO-CORE-025A failed render keeps the previous page and lists its diagnostics 4 tests
SwRS-MDOKFSTUDIO-CORE-009Keep an image whose file is missing superseded superseded by SwRS-MDOKFSTUDIO-CORE-008 Markdown file
SwRS-MDOKFSTUDIO-CORE-014Keep unsupported include forms as placeholders superseded superseded by SwRS-MDOKFSTUDIO-CORE-012 Markdown file
SwRS-MDOKFSTUDIO-CORE-016Limit the include budget per render superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-018Refuse includes outside the allowed roots superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-019Warn about a missing included file superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-023List a warning for an unavailable directive superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-024List diagnostics with file, line and severity superseded superseded by SwRS-MDOKFSTUDIO-CORE-025 Markdown file
SwRS-MDOKFSTUDIO-CORE-026Cancel a superseded render superseded superseded by SwRS-MDOKFSTUDIO-CORE-001 Markdown file
SwRS-MDOKFSTUDIO-CORE-036Style placeholders as inert superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-047Show a citation as an unresolved placeholder superseded superseded by SwRS-MDOKFSTUDIO-CORE-022 Markdown file
SwRS-MDOKFSTUDIO-CORE-067Refuse oversize included files superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file