Use case StRS-MDOKFSTUDIO-LIFE-010
The panes scroll together and the reading position survives updates
As a writer, I scroll the source and the preview shows the same passage; as a reader, I scroll or click in the rendered text and the source editor shows where that text comes from; and I keep my place when images load, the pane is resized, the zoom changes or lines are added above me.
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.
path 1: Scroll one pane, the other follows path 2: The reading line survives an update other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Scroll one pane, the other follows
- The editor and the preview show the same documentSwRS-MDOKFSTUDIO-LIFE-100 with the setting off the preview does not follow the editorSwRS-MDOKFSTUDIO-LIFE-100 · 12 tests the editor is scrolled and the preview follows, as far as the setting allows
- The preview shows the line of the editorSwRS-MDOKFSTUDIO-LIFE-108 no visible text editor shows the file, so no editor movesSwRS-MDOKFSTUDIO-LIFE-108 · 7 tests the reader scrolls the preview or activates a block and the source line is revealed in the editor
- Both panes show the same source line
Path 2: The reading line survives an update
- The preview is scrolled to a reading lineSwRS-MDOKFSTUDIO-LIFE-119 lines added or removed above the anchorSwRS-MDOKFSTUDIO-LIFE-125 the host records the reading state of each valid reportSwRS-MDOKFSTUDIO-LIFE-119 · 8 tests the page keeps its scroll anchor, a source line, through the rebuild or edit
- The same source line stays at the reading line after the update
This map has 131 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 34 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-LIFE-100Scrolling the text editor scrolls the preview to the same line 12 testsSwRS-MDOKFSTUDIO-LIFE-108Scrolling or clicking the preview reveals the source line 7 testsSwRS-MDOKFSTUDIO-LIFE-119Both panes share one reading anchor that survives updates 8 testsSwRS-MDOKFSTUDIO-LIFE-125The reading state of recent documents is saved within bounds 4 tests
SwRS-MDOKFSTUDIO-LIFE-048A changed setting that the page reads only at startup loads a new page document deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-097Two settings decide how the panes follow each other superseded superseded by SwRS-MDOKFSTUDIO-LIFE-100, SwRS-MDOKFSTUDIO-LIFE-108 Markdown file
SwRS-MDOKFSTUDIO-LIFE-112A double click reveals the source line only when the double-click setting is on deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-116A scroll or reveal report that does not name the current render moves nothing deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-117The page ignores a source scroll for another render deprecated deprecated Markdown file