Use case StRS-MDOKFSTUDIO-LIFE-007
The reader knows the render state and why a preview has no source
As a reader, I can tell whether the preview is current, still rendering, stale after an error or recovered, and I am told whether the file was deleted, renamed, is not a Markdown file or could not be restored.
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.
path 1: Wait for a render path 2: The source is gone other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Wait for a render
- A new preview waits for its renderSwRS-MDOKFSTUDIO-LIFE-049 a pending notice that is oversized or malformed is ignoredSwRS-MDOKFSTUDIO-LIFE-049 a failed render is labelled in the statusSwRS-MDOKFSTUDIO-LIFE-049 · 8 tests the status reads Preview pending, with a pending notice for a slow render
- The status reads Preview ready
Path 2: The source is gone
- The Markdown file of a preview is missingSwRS-MDOKFSTUDIO-LIFE-127 a saved state that cannot be restored shows the same status with its reasonSwRS-MDOKFSTUDIO-LIFE-062 · 3 tests the page is replaced by the status Preview source missing with the reason of the case
- The status says Preview source missingSwRS-MDOKFSTUDIO-LIFE-062 a created file that is not the source changes nothingSwRS-MDOKFSTUDIO-LIFE-062 · 3 tests the file is created and the source is rendered again
- The preview shows the file again
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 20 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-LIFE-002A background failure is logged to the extension output channel not on the map2 testsSwRS-MDOKFSTUDIO-LIFE-049The status names the render state and shows pending, failed and recovered notices 8 testsSwRS-MDOKFSTUDIO-LIFE-059The status region is a polite live region of plain text not on the map2 testsSwRS-MDOKFSTUDIO-LIFE-062A preview without a source says why and recovers when it returns 3 testsSwRS-MDOKFSTUDIO-LIFE-127A restored panel reopens its document or explains why it cannot 3 tests
SwRS-MDOKFSTUDIO-LIFE-055The page ignores a pending notice with an oversized or malformed field superseded superseded by SwRS-MDOKFSTUDIO-LIFE-049 Markdown file