Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-TOOLBAR-018: The sticky band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-0188 testsa heading lies at orabove the reading lineand the sticky bandshows it with its parentheadings, up to thedepth settingSwRS-MDOKFSTUDIO-TOOLBAR-025: The sticky band is fixed, aligned with the column and clear of the toolbarSwRS-MDOKFSTUDIO-TOOLBAR-0255 teststext passes under the band and asoft shadow is drawn below itSwRS-MDOKFSTUDIO-TOOLBAR-018: The sticky band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-0188 teststhe depth setting is changed whilea preview is open, and the page isloaded again with the new depthSwRS-MDOKFSTUDIO-TOOLBAR-018: The sticky band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-0188 testsabove the first headingthe band is hiddenSwRS-MDOKFSTUDIO-TOOLBAR-025: The sticky band is fixed, aligned with the column and clear of the toolbarSwRS-MDOKFSTUDIO-TOOLBAR-0255 testsat the top of the page no shadow is drawnSwRS-MDOKFSTUDIO-TOOLBAR-018: The sticky band shows the current heading pathSwRS-MDOKFSTUDIO-TOOLBAR-0188 testsa value out of range or not a number is rounded, kept between1 and 6, or replaced by 3The reader scrolls the documentThe reader scrolls thedocumentThe band shows the current heading path (paths 1, 2)The band shows thecurrent heading path2The current section stays pinned at the topThe current sectionstays pinned at the topThe band shows at most the configured number of linesThe band shows at mostthe configured number oflines

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