Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-LIFE-003

The side preview follows the active file and refreshes on demand

As a writer, I keep one preview beside my editor and it shows the Markdown file I am working in, without opening a new preview each time; as a reader, I redraw the preview myself when I doubt that it is current, and I stay where I was reading.

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: Follow the active file path 2: Refresh on demand, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-LIFE-003: Open Preview to Side opens or reveals a side previewSwRS-MDOKFSTUDIO-LIFE-0038 teststhe reader runs OpenPreview to Side and theside preview shows thefileSwRS-MDOKFSTUDIO-LIFE-026: The side preview follows the active Markdown editorSwRS-MDOKFSTUDIO-LIFE-0265 testsanother saved Markdown filebecomes active and the previewswitches to it, with Previewpending until its render endsSwRS-MDOKFSTUDIO-LIFE-049: The status names the render state and shows pending, failed and recovered noticesSwRS-MDOKFSTUDIO-LIFE-0498 teststhe status reads Preview readyafter a good renderSwRS-MDOKFSTUDIO-LIFE-032: Refresh Preview renders the shown document againSwRS-MDOKFSTUDIO-LIFE-0327 teststhe reader runs Refresh Preview orpresses the Refresh button and thedocument is rendered again fromits bufferSwRS-MDOKFSTUDIO-LIFE-003: Open Preview to Side opens or reveals a side previewSwRS-MDOKFSTUDIO-LIFE-0038 testsno eligible fileopens no previewSwRS-MDOKFSTUDIO-LIFE-026: The side preview follows the active Markdown editorSwRS-MDOKFSTUDIO-LIFE-0265 testsquick switching rendersonly the last requesteddocumentSwRS-MDOKFSTUDIO-LIFE-032: Refresh Preview renders the shown document againSwRS-MDOKFSTUDIO-LIFE-0327 teststhe active text editorshows another document andnothing happensSwRS-MDOKFSTUDIO-LIFE-049: The status names the render state and shows pending, failed and recovered noticesSwRS-MDOKFSTUDIO-LIFE-0498 testsa failed render is labelled in the statusA saved Markdown file is the active editorA saved Markdown file isthe active editorA side preview shows the file (paths 1, 2)A side preview shows thefile2The preview shows the newly active fileThe preview shows thenewly active fileThe status says the render is readyThe status says therender is readyThe preview shows the text of the buffer, unsaved text includedThe preview shows thetext of the buffer,unsaved text included

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

Behaviours of this use case

SwRS-MDOKFSTUDIO-LIFE-003Open Preview to Side opens or reveals a side preview 8 testsSwRS-MDOKFSTUDIO-LIFE-024The panel title names the document and whether it follows not on the map3 testsSwRS-MDOKFSTUDIO-LIFE-026The side preview follows the active Markdown editor 5 testsSwRS-MDOKFSTUDIO-LIFE-032Refresh Preview renders the shown document again 7 testsSwRS-MDOKFSTUDIO-LIFE-049The status names the render state and shows pending, failed and recovered notices 8 tests