Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-BLOCK-011

A writer adds blocks and starts an empty document from the preview

As a writer, I add a paragraph, a list or a heading between two blocks, or after the last one, and I open an empty file, or a file with only metadata, and start writing from the preview, without opening the text editor.

Use case diagram

How it is split

This use case (StRS) is reached by 3 paths, one per 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: Add a block between two blocks path 2: Start an empty document path 3: Write on a blank line other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-BLOCK-087: Edit mode places an insert point with a plus button after every body blockSwRS-MDOKFSTUDIO-BLOCK-0874 teststhe writer clicks the plus buttonof an insert point and an emptyinsertion editor opensSwRS-MDOKFSTUDIO-BLOCK-094: The host inserts a new block with clean blank linesSwRS-MDOKFSTUDIO-BLOCK-0942 teststhe host writes the new block withone blank line before it and oneafter itSwRS-MDOKFSTUDIO-BLOCK-102: An empty body offers one Start writing buttonSwRS-MDOKFSTUDIO-BLOCK-1022 teststhe writer clicks Start writingand the editor of the first blockopensSwRS-MDOKFSTUDIO-BLOCK-266: Edit mode shows each shown blank line as a blank-line blockSwRS-MDOKFSTUDIO-BLOCK-26612 testseach extra blank line shows as ablank-line blockSwRS-MDOKFSTUDIO-BLOCK-268: Typing or pasting in a blank-line block writes the text in place of that blank lineSwRS-MDOKFSTUDIO-BLOCK-26817 teststhe writer types in it and thehost writes the text in place ofthat one blank line, keeping theother blank linesSwRS-MDOKFSTUDIO-BLOCK-087: Edit mode places an insert point with a plus button after every body blockSwRS-MDOKFSTUDIO-BLOCK-0874 teststhe properties table has aninsert point tooSwRS-MDOKFSTUDIO-BLOCK-094: The host inserts a new block with clean blank linesSwRS-MDOKFSTUDIO-BLOCK-0942 testsa whitespace-only new block writes nothingSwRS-MDOKFSTUDIO-BLOCK-253: Start writing is the keyboard selection of an empty documentSwRS-MDOKFSTUDIO-BLOCK-2533 testsEnter on the selected Start writing button opens the sameeditorSwRS-MDOKFSTUDIO-BLOCK-269: Removing a blank-line block removes that one blank lineSwRS-MDOKFSTUDIO-BLOCK-26912 testsDelete removes that one blank lineEdit mode is onEdit mode is onAn empty insertion editor is openAn empty insertioneditor is openThe new block is in the document between its neighboursThe new block is in thedocument between itsneighboursEdit mode is on and the body of the document is emptyEdit mode is on and thebody of the document isemptyThe editor of the first block is openThe editor of the firstblock is openEdit mode is on and the document has extra blank linesEdit mode is on and thedocument has extra blanklinesA blank-line block is shownA blank-line block isshownThe typed text is in the document where the blank line wasThe typed text is in thedocument where the blankline was

This map has 92 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 7 behaviours on the map are tested one by one, with 40 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-087Edit mode places an insert point with a plus button after every body block 4 testsSwRS-MDOKFSTUDIO-BLOCK-094The host inserts a new block with clean blank lines 2 testsSwRS-MDOKFSTUDIO-BLOCK-102An empty body offers one Start writing button 2 testsSwRS-MDOKFSTUDIO-BLOCK-253Start writing is the keyboard selection of an empty document 3 testsSwRS-MDOKFSTUDIO-BLOCK-264An emptied top-level block or list item is deleted with its separator when the writer commits it not on the map4 testsSwRS-MDOKFSTUDIO-BLOCK-265Delete block deletes the blocks of a selection with one separator in one undo step not on the map7 testsSwRS-MDOKFSTUDIO-BLOCK-266Edit mode shows each shown blank line as a blank-line block 12 testsSwRS-MDOKFSTUDIO-BLOCK-267A blank-line block takes the arrows, Enter and a click not on the map3 testsSwRS-MDOKFSTUDIO-BLOCK-268Typing or pasting in a blank-line block writes the text in place of that blank line 17 testsSwRS-MDOKFSTUDIO-BLOCK-269Removing a blank-line block removes that one blank line 12 tests