Use case StRS-MDOKFSTUDIO-MYST-015
Admonitions and context tags read as distinct callouts
As a writer, I want admonitions and pasted context tags to look like the callouts readers will see, without building, so that I can review notes, warnings and prompts in VS Code.
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: An admonition path 2: A pasted context tag other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: An admonition
- A document holds an admonition directiveSwRS-MDOKFSTUDIO-MYST-001 a kind outside the named listSwRS-MDOKFSTUDIO-MYST-001 · 9 tests the page renders a panel with the title, accent colour, badge and Markdown body of its kind
- The admonition is drawn as a panelSwRS-MDOKFSTUDIO-MYST-006 a dropdown admonition collapses under its titleSwRS-MDOKFSTUDIO-MYST-006 · 4 tests an admonition that contains another directive shows the inner panel inside its parent
- Nested directives are drawn as panels inside their parent
Path 2: A pasted context tag
- A document holds a lower-case context tag alone on its line, with its closing tagSwRS-MDOKFSTUDIO-MYST-013 an unpaired or non-context tag stays visible as textSwRS-MDOKFSTUDIO-MYST-013 · 3 tests the page renders a panel titled with the literal tag around the Markdown between the tags
- The context is drawn as a titled panel
This map has 77 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 21 scenarios.