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
Path 1: Follow the active file
- A saved Markdown file is the active editorSwRS-MDOKFSTUDIO-LIFE-003 no eligible file opens no previewSwRS-MDOKFSTUDIO-LIFE-003 · 8 tests the reader runs Open Preview to Side and the side preview shows the file
- A side preview shows the fileSwRS-MDOKFSTUDIO-LIFE-026 quick switching renders only the last requested documentSwRS-MDOKFSTUDIO-LIFE-026 · 5 tests another saved Markdown file becomes active and the preview switches to it, with Preview pending until its render ends
- The preview shows the newly active fileSwRS-MDOKFSTUDIO-LIFE-049 a failed render is labelled in the statusSwRS-MDOKFSTUDIO-LIFE-049 · 8 tests the status reads Preview ready after a good render
- The status says the render is ready
Path 2: Refresh on demand
- A side preview shows the fileSwRS-MDOKFSTUDIO-LIFE-032 the active text editor shows another document and nothing happensSwRS-MDOKFSTUDIO-LIFE-032 · 7 tests the reader runs Refresh Preview or presses the Refresh button and the document is rendered again from its buffer
- The preview shows the text 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