Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TOOLBAR-006

The reader uses a table of contents beside the document

As a reader, I open a table of contents next to a long document when I want an overview. I close it when I want the room, and the preview remembers my choice. In the table of contents I see where I am, I fold the sections I do not need, and I click a heading to go there without leaving the document. I read the document and the table of contents side by side, and neither hides part of the other.

Use case diagram

How it is split

This use case (StRS) is reached by 2 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. Where paths meet, they share the circle or the step.

path 1: Open the table of contents and jump path 2: Narrow pane, starts at 2 shared step other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TOOLBAR-033: The Table of contents button shows and hides the column (paths 1 and 2)SwRS-MDOKFSTUDIO-TOOLBAR-0332 teststhe reader presses theTable of contents buttonand the column opensSwRS-MDOKFSTUDIO-TOOLBAR-040: The column lists the h1 to h4 headings with foldingSwRS-MDOKFSTUDIO-TOOLBAR-0403 teststhe column lists the headings h1to h4 that have text, in documentorderSwRS-MDOKFSTUDIO-TOOLBAR-045: The column marks the section being read and jumps on clickSwRS-MDOKFSTUDIO-TOOLBAR-0453 teststhe reading line marks the currententry, and a click on an entryscrolls its heading to the readingline below the bandSwRS-MDOKFSTUDIO-TOOLBAR-037: The column sits below the toolbar on the right and never covers the textSwRS-MDOKFSTUDIO-TOOLBAR-0375 testson a pane narrower than 760pixels, a rail with one tick perheading is shown insteadSwRS-MDOKFSTUDIO-TOOLBAR-033: The Table of contents button shows and hides the columnSwRS-MDOKFSTUDIO-TOOLBAR-0332 teststhe initial state of thecolumnSwRS-MDOKFSTUDIO-TOOLBAR-040: The column lists the h1 to h4 headings with foldingSwRS-MDOKFSTUDIO-TOOLBAR-0403 testsa document with no headingsSwRS-MDOKFSTUDIO-TOOLBAR-037: The column sits below the toolbar on the right and never covers the textSwRS-MDOKFSTUDIO-TOOLBAR-0375 teststhe content is padded for therailSwRS-MDOKFSTUDIO-TOOLBAR-045: The column marks the section being read and jumps on clickSwRS-MDOKFSTUDIO-TOOLBAR-0453 teststhe parent of the current entry is foldedThe page is shown without the table of contents (paths 1, 2)The page is shownwithout the table ofcontents2The column is open (paths 1, 2)The column is openThe headings are listedThe headings are listedThe reader is at the heading they choseThe reader is at theheading they choseA rail with one tick per heading is shownA rail with one tick perheading is shown

This map has 841 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 28 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TOOLBAR-025The sticky band is fixed, aligned with the column and clear of the toolbar not on the map5 testsSwRS-MDOKFSTUDIO-TOOLBAR-033The Table of contents button shows and hides the column 2 testsSwRS-MDOKFSTUDIO-TOOLBAR-037The column sits below the toolbar on the right and never covers the text 5 testsSwRS-MDOKFSTUDIO-TOOLBAR-040The column lists the h1 to h4 headings with folding 3 testsSwRS-MDOKFSTUDIO-TOOLBAR-045The column marks the section being read and jumps on click 3 testsSwRS-MDOKFSTUDIO-TOOLBAR-138The column lists the items of top-level lists when a setting asks not on the map3 tests
SwRS-MDOKFSTUDIO-TOOLBAR-133The narrow-pane rail keeps the text and the other Escape handlers clear superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-037 Markdown file