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
Path 1: Open the table of contents and jump
- The page is shown without the table of contentsSwRS-MDOKFSTUDIO-TOOLBAR-033 the initial state of the columnSwRS-MDOKFSTUDIO-TOOLBAR-033 · 2 tests the reader presses the Table of contents button and the column opens
- The column is openSwRS-MDOKFSTUDIO-TOOLBAR-040 a document with no headingsSwRS-MDOKFSTUDIO-TOOLBAR-040 · 3 tests the column lists the headings h1 to h4 that have text, in document order
- The headings are listedSwRS-MDOKFSTUDIO-TOOLBAR-045 the parent of the current entry is foldedSwRS-MDOKFSTUDIO-TOOLBAR-045 · 3 tests the reading line marks the current entry, and a click on an entry scrolls its heading to the reading line below the band
- The reader is at the heading they chose
Path 2: Narrow pane
- The page is shown without the table of contentsSwRS-MDOKFSTUDIO-TOOLBAR-033 · 2 tests the reader presses the Table of contents button and the column opens
- The column is openSwRS-MDOKFSTUDIO-TOOLBAR-037 the content is padded for the railSwRS-MDOKFSTUDIO-TOOLBAR-037 · 5 tests on a pane narrower than 760 pixels, a rail with one tick per heading is shown instead
- A rail with one tick per heading 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