Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-TOOLBAR-003: A chevron folds the section under a heading, and Fold all folds every sectionSwRS-MDOKFSTUDIO-TOOLBAR-0036 teststhe reader presses the chevron ofa heading, which hides the blocksup to the next heading of the sameor a higher levelSwRS-MDOKFSTUDIO-TOOLBAR-004: The folded sections are a view state kept per documentSwRS-MDOKFSTUDIO-TOOLBAR-0042 teststhe folded headings are kept inthe webview state and appliedagain after every content updateand reloadSwRS-MDOKFSTUDIO-TOOLBAR-003: A chevron folds the section under a heading, and Fold all folds every sectionSwRS-MDOKFSTUDIO-TOOLBAR-0036 teststhe reader presses the chevronagain and the blocks are shownagainSwRS-MDOKFSTUDIO-TOOLBAR-003: A chevron folds the section under a heading, and Fold all folds every sectionSwRS-MDOKFSTUDIO-TOOLBAR-0036 teststhe Fold button or the commandfolds every section that hascontentSwRS-MDOKFSTUDIO-TOOLBAR-008: Blocks in a folded section cannot be editedSwRS-MDOKFSTUDIO-TOOLBAR-0081 testa block inside the foldedsection stays mappedSwRS-MDOKFSTUDIO-TOOLBAR-006: Search and navigation unfold the folded section of their targetSwRS-MDOKFSTUDIO-TOOLBAR-0062 teststhe browser find reaches text in the folded section, whichunfoldsThe document is shown with its sections openThe document is shownwith its sections openA section is foldedA section is foldedThe folds stay as the reader left themThe folds stay as thereader left themThe section is unfoldedThe 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