Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TOOLBAR-013

The reader decides how the panes scroll together and sees the cursor block

As a reader, I choose per preview panel whether scrolling the text editor scrolls the preview, the button tells me when there is no text editor to follow, and I see in the preview which block I am working on in the text editor, even when the preview does not follow the editor's scroll.

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 the two panes together path 2: See the cursor in the preview other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TOOLBAR-120: The Anchor button switches whether the preview follows the editorSwRS-MDOKFSTUDIO-TOOLBAR-1207 teststhe reader presses it, the buttonshows the anchor mode and thepairing, and the preview isaligned with the first visibleline of each text editor thatshows its documentSwRS-MDOKFSTUDIO-TOOLBAR-120: The Anchor button switches whether the preview follows the editorSwRS-MDOKFSTUDIO-TOOLBAR-1207 teststhe choice is kept for the panelSwRS-MDOKFSTUDIO-TOOLBAR-128: The block at the editor cursor is outlined when the setting is onSwRS-MDOKFSTUDIO-TOOLBAR-1287 teststhe host sends the cursor line andthe preview outlines the blockthat contains itSwRS-MDOKFSTUDIO-TOOLBAR-120: The Anchor button switches whether the preview follows the editorSwRS-MDOKFSTUDIO-TOOLBAR-1207 testsno text editor shows the file,so the button is disabledSwRS-MDOKFSTUDIO-TOOLBAR-120: The Anchor button switches whether the preview follows the editorSwRS-MDOKFSTUDIO-TOOLBAR-1207 testsa value that is not a boolean is not accepted by the hostSwRS-MDOKFSTUDIO-TOOLBAR-128: The block at the editor cursor is outlined when the setting is onSwRS-MDOKFSTUDIO-TOOLBAR-1287 testswith the setting off or no editor, nothing is outlinedThe Anchor button is enabledThe Anchor button isenabledThe preview and the text editor scroll togetherThe preview and the texteditor scroll togetherThe panel keeps the choiceThe panel keeps thechoiceThe setting that marks the editor selection is onThe setting that marksthe editor selection isonThe block that matches the cursor line is outlinedThe block that matchesthe cursor line isoutlined

This map has 168 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 18 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TOOLBAR-120The Anchor button switches whether the preview follows the editor 7 testsSwRS-MDOKFSTUDIO-TOOLBAR-128The block at the editor cursor is outlined when the setting is on 7 tests
SwRS-MDOKFSTUDIO-TOOLBAR-122A pairing message for another document is ignored superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-120 Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-126The host accepts only a boolean anchor mode superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-120 Markdown file