Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-LIFE-100: Scrolling the text editor scrolls the preview to the same lineSwRS-MDOKFSTUDIO-LIFE-10012 teststhe editor is scrolled and thepreview follows, as far as thesetting allowsSwRS-MDOKFSTUDIO-LIFE-108: Scrolling or clicking the preview reveals the source lineSwRS-MDOKFSTUDIO-LIFE-1087 teststhe reader scrolls the preview oractivates a block and the sourceline is revealed in the editorSwRS-MDOKFSTUDIO-LIFE-119: Both panes share one reading anchor that survives updatesSwRS-MDOKFSTUDIO-LIFE-1198 teststhe page keeps its scroll anchor,a source line, through the rebuildor editSwRS-MDOKFSTUDIO-LIFE-100: Scrolling the text editor scrolls the preview to the same lineSwRS-MDOKFSTUDIO-LIFE-10012 testswith the setting off thepreview does not follow theeditorSwRS-MDOKFSTUDIO-LIFE-108: Scrolling or clicking the preview reveals the source lineSwRS-MDOKFSTUDIO-LIFE-1087 testsno visible text editor shows the file, so no editor movesSwRS-MDOKFSTUDIO-LIFE-119: Both panes share one reading anchor that survives updatesSwRS-MDOKFSTUDIO-LIFE-1198 testslines added or removed above the anchorSwRS-MDOKFSTUDIO-LIFE-125: The reading state of recent documents is saved within boundsSwRS-MDOKFSTUDIO-LIFE-1254 teststhe host records the reading state of each valid reportThe editor and the preview show the same documentThe editor and thepreview show the samedocumentThe preview shows the line of the editorThe preview shows theline of the editorBoth panes show the same source lineBoth panes show the samesource lineThe preview is scrolled to a reading lineThe preview is scrolledto a reading lineThe same source line stays at the reading line after the updateThe same source linestays at the readingline 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