Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-019

A writer formats text with buttons and shortcuts

As a writer, I format text from buttons, slash commands or keyboard shortcuts without typing the syntax, take any such edit back with a single undo, and am never left with half-written markup.

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: Bold a word, then take it back other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-001: The palette mode decides the button sets, in registry orderSwRS-MDOKFSTUDIO-PALETTE-0018 teststhe palette opens above the textbox with the Palette buttonsselect and the buttons of the modein registry orderSwRS-MDOKFSTUDIO-PALETTE-276: Inline marker buttons toggle their markers around the selectionSwRS-MDOKFSTUDIO-PALETTE-2762 teststhe writer presses Bold and theselection is wrapped in twoasterisksSwRS-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 stepSwRS-MDOKFSTUDIO-PALETTE-039: A palette action edits in one undo step or leaves the text unchanged and says whySwRS-MDOKFSTUDIO-PALETTE-0394 testsan action that makes no edit leaves the text unchangedA block text box is open in edit modeA block text box is openin edit modeThe palette is shown above the text boxThe palette is shownabove the text boxThe selection is wrapped in markersThe selection is wrappedin markersThe text is as it was before the buttonThe text is as it wasbefore the button

This map has 660 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 25 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-PALETTE-002Every edit bar button shows the slide-in tooltip not on the map3 testsSwRS-MDOKFSTUDIO-PALETTE-003The Table of contents action inserts a [TOC] marker not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-039A palette action edits in one undo step or leaves the text unchanged and says why 4 testsSwRS-MDOKFSTUDIO-PALETTE-043The Heading list sets the heading level of the touched lines not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-050Horizontal rule puts three dashes between blank lines not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-083Cmd or Ctrl with B, I or K runs Bold, Italic or Link on the platform's command key not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-266Cmd or Ctrl with the slash key toggles a plain HTML comment on the touched lines not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-276Inline marker buttons toggle their markers around the selection 2 testsSwRS-MDOKFSTUDIO-PALETTE-277Line-prefix buttons toggle their prefix on the touched lines not on the map5 testsSwRS-MDOKFSTUDIO-PALETTE-280The Horizontal rule button is drawn as three dashes not on the map1 test
SwRS-MDOKFSTUDIO-PALETTE-045Bold and Italic toggle their shared asterisk markers superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-276 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-048Strikethrough toggles a double tilde pair superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-276 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-049Blockquote prefixes the touched lines or removes one quote level superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-052Bulleted list toggles a dash prefix, from the slash menu only superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-053Numbered list numbers the touched non-blank lines superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file