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
Path 1: Add a block between two blocks
- Edit mode is onSwRS-MDOKFSTUDIO-BLOCK-087 the properties table has an insert point tooSwRS-MDOKFSTUDIO-BLOCK-087 · 4 tests the writer clicks the plus button of an insert point and an empty insertion editor opens
- An empty insertion editor is openSwRS-MDOKFSTUDIO-BLOCK-094 a whitespace-only new block writes nothingSwRS-MDOKFSTUDIO-BLOCK-094 · 2 tests the host writes the new block with one blank line before it and one after it
- The new block is in the document between its neighbours
Path 2: Start an empty document
- Edit mode is on and the body of the document is emptySwRS-MDOKFSTUDIO-BLOCK-253 Enter on the selected Start writing button opens the same editorSwRS-MDOKFSTUDIO-BLOCK-102 · 2 tests the writer clicks Start writing and the editor of the first block opens
- The editor of the first block is open
Path 3: Write on a blank line
- Edit mode is on and the document has extra blank linesSwRS-MDOKFSTUDIO-BLOCK-266 · 12 tests each extra blank line shows as a blank-line block
- A blank-line block is shownSwRS-MDOKFSTUDIO-BLOCK-269 Delete removes that one blank lineSwRS-MDOKFSTUDIO-BLOCK-268 · 17 tests the writer types in it and the host writes the text in place of that one blank line, keeping the other blank lines
- The typed text is in the document where the blank line 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