Use case StRS-MDOKFSTUDIO-TOOLBAR-002
The reader folds and unfolds the sections of the document
Readers of a long document want to hide the sections they are not reading and see the outline of the document, and to come back to the same folded view later, without the document being modified.
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: Fold sections and keep them folded other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Fold sections and keep them folded
- The document is shown with its sections openSwRS-MDOKFSTUDIO-TOOLBAR-003 the Fold button or the command folds every section that has contentSwRS-MDOKFSTUDIO-TOOLBAR-003 · 6 tests the reader presses the chevron of a heading, which hides the blocks up to the next heading of the same or a higher level
- A section is foldedSwRS-MDOKFSTUDIO-TOOLBAR-008 a block inside the folded section stays mappedSwRS-MDOKFSTUDIO-TOOLBAR-004 · 2 tests the folded headings are kept in the webview state and applied again after every content update and reload
- The folds stay as the reader left themSwRS-MDOKFSTUDIO-TOOLBAR-006 the browser find reaches text in the folded section, which unfoldsSwRS-MDOKFSTUDIO-TOOLBAR-003 · 6 tests the reader presses the chevron again and the blocks are shown again
- The section is unfolded
This map has 158 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 14 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-TOOLBAR-003A chevron folds the section under a heading, and Fold all folds every section 6 testsSwRS-MDOKFSTUDIO-TOOLBAR-004The folded sections are a view state kept per document 2 testsSwRS-MDOKFSTUDIO-TOOLBAR-006Search and navigation unfold the folded section of their target 2 testsSwRS-MDOKFSTUDIO-TOOLBAR-008Blocks in a folded section cannot be edited 1 test
SwRS-MDOKFSTUDIO-TOOLBAR-005Fold all and unfold all fold every section from the toolbar and the command palette superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-003 Markdown file