Behaviour SwRS-MDOKFSTUDIO-LIFE-187
The side preview that follows the editor marks the line of a jump
When a jump moves a Markdown text editor to a line, the side preview that follows the active editor SHALL show the line marker on that line of the jump's document, posting it only to a visible page that shows that document within five seconds and dropping it after that, whichever of the jump and the switch of document comes first.
Part of StRS-MDOKFSTUDIO-LIFE-023, outside the paths drawn on its map.
Scenarios 2
The situations the tests check; open one to read it.
nominalA search click in a file the side preview shows
Givena side preview that follows the editor and shows `doc.md`, whose page is ready and visible
Whena jump to line 40 of `doc.md` arrives
Thenthe session posts previewRevealLine for line 40 and the page draws the line marker there
boundaryRouting
| Input | Outcome |
|---|---|
| only a Studio tab shows the file | it marks nothing |
| the jump is to another file, before the side preview switches to it | the line waits on the session, keyed by that document, and is posted once the page of that document is ready |
| the switch of document arrives before the jump | the line is posted at once |
| the page is hidden | the line waits for the page to report ready again |
| the line is older than 5 seconds | it is dropped |
| a line for a document the preview then leaves | it is dropped by the switch |
| several following side previews | only the latest marks |
| a jump on a diff side | it marks that line of the real file the side preview shows |