Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-LIFE-189

The line marker of the side preview goes on an edit of the document or a switch of file

While the side preview shows a line marker, the host SHALL tell the page to remove it when the text editor edits the marked document or when the side preview switches to another document, and SHALL keep it through scrolls and cursor moves.

Step 3 of path 2 in StRS-MDOKFSTUDIO-LIFE-023: from “The reader reads and edits on” to “”.

Scenarios 2

The situations the tests check; open one to read it.

nominalA typed word removes the marker
Giventhe side preview showing a line marker on `doc.md`
Whenthe text editor edits `doc.md`
Thenthe host posts previewLineMarkerClear and the page removes the marker
boundaryLifetime
InputOutcome
a scroll of the editor or of the page, a cursor movethe marker stays
an edit the page itself appliedthe host posts no clear (the page already removed it)
an edit of another documentthe marker stays
a switch of documentthe marker is removed and does not come back on returning
a Studio tabit is asked for no marker by a jump, so it has none to clear

Implemented in 4

Tested by 4