Markdown OKF-Schema Studio

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
InputOutcome
only a Studio tab shows the fileit marks nothing
the jump is to another file, before the side preview switches to itthe 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 jumpthe line is posted at once
the page is hiddenthe line waits for the page to report ready again
the line is older than 5 secondsit is dropped
a line for a document the preview then leavesit is dropped by the switch
several following side previewsonly the latest marks
a jump on a diff sideit marks that line of the real file the side preview shows

Implemented in 2

Tested by 4