Use case StRS-MDOKFSTUDIO-PALETTE-020
A writer inserts GitHub Flavored Markdown constructs
As a writer of GitHub-style documents, I insert an alert, a task list, a collapsible section or a footnote from a button without remembering the syntax, and take the insertion back with a single undo.
Use case diagram
How it is split
This use case (StRS) is reached by one path (the 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: Insert an alert other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Insert an alert
- The palette is shown above the text box in the GFM modeSwRS-MDOKFSTUDIO-PALETTE-115 · 4 tests the writer presses Alert and the touched lines are quoted under a note head, with a list of the five types at the caret
- An alert is written and its type list is openSwRS-MDOKFSTUDIO-PALETTE-039 · 4 tests the writer undoes and the edit is taken back in one step
- The text is as it was before the button
This map has 35 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 11 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-PALETTE-115Alert inserts a GitHub alert and offers its type list 4 testsSwRS-MDOKFSTUDIO-PALETTE-124Collapsible wraps the touched lines in a details element with a summary not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-125Footnote adds a numbered reference and an empty definition at the end not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-269Caret on an alert or admonition type lists the types not on the map3 testsSwRS-MDOKFSTUDIO-PALETTE-276Inline marker buttons toggle their markers around the selection not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-277Line-prefix buttons toggle their prefix on the touched lines not on the map5 tests
SwRS-MDOKFSTUDIO-PALETTE-123Checkbox toggles a task list box on the touched lines superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-126Key wraps the selection in kbd tags, removes them, or inserts a sample superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-276 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-267Option toggles a choice list marker on the touched lines superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file