Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-PALETTE-115: Alert inserts a GitHub alert and offers its type listSwRS-MDOKFSTUDIO-PALETTE-1154 teststhe writer presses Alert and thetouched lines are quoted under anote head, with a list of the fivetypes at the caretSwRS-MDOKFSTUDIO-PALETTE-039: A palette action edits in one undo step or leaves the text unchanged and says whySwRS-MDOKFSTUDIO-PALETTE-0394 teststhe writer undoes and the edit istaken back in one stepThe palette is shown above the text box in the GFM modeThe palette is shownabove the text box inthe GFM modeAn alert is written and its type list is openAn alert is written andits type list is openThe text is as it was before the buttonThe text is as it wasbefore 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