Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-LIFE-049: The status names the render state and shows pending, failed and recovered noticesSwRS-MDOKFSTUDIO-LIFE-0498 teststhe status reads Preview pending,with a pending notice for a slowrenderSwRS-MDOKFSTUDIO-LIFE-062: A preview without a source says why and recovers when it returnsSwRS-MDOKFSTUDIO-LIFE-0623 teststhe page is replaced by the statusPreview source missing with thereason of the caseSwRS-MDOKFSTUDIO-LIFE-062: A preview without a source says why and recovers when it returnsSwRS-MDOKFSTUDIO-LIFE-0623 teststhe file is created and the sourceis rendered againSwRS-MDOKFSTUDIO-LIFE-049: The status names the render state and shows pending, failed and recovered noticesSwRS-MDOKFSTUDIO-LIFE-0498 testsa pending notice that is oversized or malformed is ignoredSwRS-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 statusSwRS-MDOKFSTUDIO-LIFE-127: A restored panel reopens its document or explains why it cannotSwRS-MDOKFSTUDIO-LIFE-1273 testsa saved state that cannotbe restored shows the samestatus with its reasonSwRS-MDOKFSTUDIO-LIFE-062: A preview without a source says why and recovers when it returnsSwRS-MDOKFSTUDIO-LIFE-0623 testsa created file that is not the source changes nothingA new preview waits for its renderA new preview waits forits renderThe status reads Preview readyThe status reads PreviewreadyThe Markdown file of a preview is missingThe Markdown file of apreview is missingThe status says Preview source missingThe status says Previewsource missingThe preview shows the file againThe preview shows thefile 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