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
Path 1: Scroll the two panes together
- The Anchor button is enabledSwRS-MDOKFSTUDIO-TOOLBAR-120 no text editor shows the file, so the button is disabledSwRS-MDOKFSTUDIO-TOOLBAR-120 · 7 tests the reader presses it, the button shows the anchor mode and the pairing, and the preview is aligned with the first visible line of each text editor that shows its document
- The preview and the text editor scroll togetherSwRS-MDOKFSTUDIO-TOOLBAR-120 a value that is not a boolean is not accepted by the hostSwRS-MDOKFSTUDIO-TOOLBAR-120 · 7 tests the choice is kept for the panel
- The panel keeps the choice
Path 2: See the cursor in the preview
- The setting that marks the editor selection is onSwRS-MDOKFSTUDIO-TOOLBAR-128 with the setting off or no editor, nothing is outlinedSwRS-MDOKFSTUDIO-TOOLBAR-128 · 7 tests the host sends the cursor line and the preview outlines the block that contains it
- The block that matches the cursor line is outlined
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