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
| Input | Outcome |
|---|---|
| a scroll of the editor or of the page, a cursor move | the marker stays |
| an edit the page itself applied | the host posts no clear (the page already removed it) |
| an edit of another document | the marker stays |
| a switch of document | the marker is removed and does not come back on returning |
| a Studio tab | it is asked for no marker by a jump, so it has none to clear |