Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-BLOCK-014: A click or Enter on a mapped block opens its editorSwRS-MDOKFSTUDIO-BLOCK-01416 teststhe writer clicks a rendered blockand its editor opens with thelines of the blockSwRS-MDOKFSTUDIO-BLOCK-033: The status line shows the lines and keys, with Done and Cancel beside itSwRS-MDOKFSTUDIO-BLOCK-0335 teststhe host sends the source and theframe shows the text box, the linerange and the keys, with Done andCancelSwRS-MDOKFSTUDIO-BLOCK-014: A click or Enter on a mapped block opens its editorSwRS-MDOKFSTUDIO-BLOCK-01416 testsin reading mode a click opens no editorSwRS-MDOKFSTUDIO-BLOCK-017: The hover outline shows what a click would editSwRS-MDOKFSTUDIO-BLOCK-0175 testshovering outlines the element a click would editSwRS-MDOKFSTUDIO-BLOCK-026: The editor opens with the caret at the clicked wordSwRS-MDOKFSTUDIO-BLOCK-0263 teststhe caret is placed at the clicked wordEdit mode is onEdit mode is onThe framed editor is open in place of the blockThe framed editor isopen in place of theblockThe writer edits the raw Markdown of the block with Done and Cancel at handThe writer edits the rawMarkdown of the blockwith Done and Cancel athand

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