Use case StRS-MDOKFSTUDIO-TOOLBAR-004
The reader always sees the section being read
As a reader, I always know which section I am in while I scroll a long document, without the pinned headings shifting the text or hiding it, and I choose how much of the heading path stays visible, from the current heading alone up to six levels.
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: Scroll and keep the section in view path 2: Change the depth of the band, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Scroll and keep the section in view
- The reader scrolls the documentSwRS-MDOKFSTUDIO-TOOLBAR-018 above the first heading the band is hiddenSwRS-MDOKFSTUDIO-TOOLBAR-018 · 8 tests a heading lies at or above the reading line and the sticky band shows it with its parent headings, up to the depth setting
- The band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-025 at the top of the page no shadow is drawnSwRS-MDOKFSTUDIO-TOOLBAR-025 · 5 tests text passes under the band and a soft shadow is drawn below it
- The current section stays pinned at the top
Path 2: Change the depth of the band
- The band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-018 a value out of range or not a number is rounded, kept between 1 and 6, or replaced by 3SwRS-MDOKFSTUDIO-TOOLBAR-018 · 8 tests the depth setting is changed while a preview is open, and the page is loaded again with the new depth
- The band shows at most the configured number of lines
This map has 402 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 22 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-TOOLBAR-018The sticky band shows the current heading path 8 testsSwRS-MDOKFSTUDIO-TOOLBAR-025The sticky band is fixed, aligned with the column and clear of the toolbar 5 testsSwRS-MDOKFSTUDIO-TOOLBAR-030The reading offset below the band settles without oscillation not on the map4 tests
SwRS-MDOKFSTUDIO-TOOLBAR-002A soft shadow under the sticky heading band shows only while text scrolls under it superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-025 Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-022The sticky heading depth setting decides how many levels stay pinned superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-018 Markdown file