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
Path 1: Bold a word, then take it back
- A block text box is open in edit modeSwRS-MDOKFSTUDIO-PALETTE-001 · 8 tests the palette opens above the text box with the Palette buttons select and the buttons of the mode in registry order
- The palette is shown above the text boxSwRS-MDOKFSTUDIO-PALETTE-039 an action that makes no edit leaves the text unchangedSwRS-MDOKFSTUDIO-PALETTE-276 · 2 tests the writer presses Bold and the selection is wrapped in two asterisks
- The selection is wrapped in markersSwRS-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 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