Use case StRS-MDOKFSTUDIO-BLOCK-003
A writer edits the raw Markdown of a block in a framed editor
As a writer, I click a paragraph, heading, list, admonition, code block or image in the preview and edit its Markdown right there, see exactly which lines of the file I am editing, how to finish and how to abandon, and never change an included file by accident.
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: Edit a block in place other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Edit a block in place
- Edit mode is onSwRS-MDOKFSTUDIO-BLOCK-014 in reading mode a click opens no editorSwRS-MDOKFSTUDIO-BLOCK-017 hovering outlines the element a click would editSwRS-MDOKFSTUDIO-BLOCK-026 the caret is placed at the clicked wordSwRS-MDOKFSTUDIO-BLOCK-014 · 16 tests the writer clicks a rendered block and its editor opens with the lines of the block
- The framed editor is open in place of the blockSwRS-MDOKFSTUDIO-BLOCK-033 · 5 tests the host sends the source and the frame shows the text box, the line range and the keys, with Done and Cancel
- The writer edits the raw Markdown of the block with Done and Cancel at hand
This map has 152 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 4 behaviours on the map are tested one by one, with 34 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-BLOCK-001The Edit button turns edit mode on and off and tidies up on exit not on the map4 testsSwRS-MDOKFSTUDIO-BLOCK-014A click or Enter on a mapped block opens its editor 16 testsSwRS-MDOKFSTUDIO-BLOCK-017The hover outline shows what a click would edit 5 testsSwRS-MDOKFSTUDIO-BLOCK-026The editor opens with the caret at the clicked word 3 testsSwRS-MDOKFSTUDIO-BLOCK-033The status line shows the lines and keys, with Done and Cancel beside it 5 testsSwRS-MDOKFSTUDIO-BLOCK-041One edit at a time: an open editor blocks other edits, opens and refreshes not on the map16 testsSwRS-MDOKFSTUDIO-BLOCK-102An empty body offers one Start writing button not on the map2 testsSwRS-MDOKFSTUDIO-BLOCK-127An included block is never moved, cut, copied, selected or pasted after not on the map9 testsSwRS-MDOKFSTUDIO-BLOCK-255A block editor that opens late leaves the focus in a field that took it not on the map3 testsSwRS-MDOKFSTUDIO-BLOCK-257A block editor in a grid card widens the card and keeps the palette above a readable text box not on the map2 testsSwRS-MDOKFSTUDIO-BLOCK-260A card title or option opens on its own line not on the map4 tests
SwRS-MDOKFSTUDIO-BLOCK-002A horizontal rule has a tall invisible hit area superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-014 Markdown file
SwRS-MDOKFSTUDIO-BLOCK-021Clicking any part of an admonition edits its whole directive deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-BLOCK-023A click on an image block opens its editor deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-BLOCK-029The block editor is a labelled one-pixel frame that hides its rendered block superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-033 Markdown file