Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TOOLBAR-009

The reader goes Back and Next through followed links without losing typed text

As a reader, I follow a link to another document or a heading, and come back to the exact place with Back, then move forward again with Next; as a writer, I follow a link or press Back right after typing, and the text I typed is saved, not lost.

Use case diagram

How it is split

This use case (StRS) is reached by one path (the 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: Follow a link and go Back other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-BLOCK-205: Open editors are saved before the page hides or leaves the documentSwRS-MDOKFSTUDIO-BLOCK-2057 teststhe text typed in every openeditor is saved before the pagegoes awaySwRS-MDOKFSTUDIO-TOOLBAR-059: Followed links and anchor jumps are recorded per panel and replayed at their lineSwRS-MDOKFSTUDIO-TOOLBAR-0595 teststhe link to another Markdowndocument, or an anchor thatresolves to a source line, isrecorded in the history of thepanelSwRS-MDOKFSTUDIO-TOOLBAR-054: Back and Next follow the host's history stateSwRS-MDOKFSTUDIO-TOOLBAR-0547 teststhe Back button is enabled and apress posts one history moveSwRS-MDOKFSTUDIO-TOOLBAR-059: Followed links and anchor jumps are recorded per panel and replayed at their lineSwRS-MDOKFSTUDIO-TOOLBAR-0595 testsBack opens the stored documentwith the stored line selected, orscrolls the preview to the storedlineSwRS-MDOKFSTUDIO-BLOCK-205: Open editors are saved before the page hides or leaves the documentSwRS-MDOKFSTUDIO-BLOCK-2057 testsa save refused during theflush warns that the text wasnot savedSwRS-MDOKFSTUDIO-TOOLBAR-059: Followed links and anchor jumps are recorded per panel and replayed at their lineSwRS-MDOKFSTUDIO-TOOLBAR-0595 testsan unknown line is notrecorded as a placeSwRS-MDOKFSTUDIO-TOOLBAR-054: Back and Next follow the host's history stateSwRS-MDOKFSTUDIO-TOOLBAR-0547 teststhere is nowhere to go and thestate is posted againSwRS-MDOKFSTUDIO-TOOLBAR-054: Back and Next follow the host's history stateSwRS-MDOKFSTUDIO-TOOLBAR-0547 testsa history move with an invalid direction is not acceptedThe reader has typed in an open block editor and clicks a linkThe reader has typed inan open block editor andclicks a linkThe typed text is savedThe typed text is savedThe place is recordedThe place is recordedThe reader has pressed BackThe reader has pressedBackThe reader is back at the document and the line they leftThe reader is back atthe document and theline they left

This map has 17,479 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 30 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-205Open editors are saved before the page hides or leaves the document 7 testsSwRS-MDOKFSTUDIO-TOOLBAR-054Back and Next follow the host's history state 7 testsSwRS-MDOKFSTUDIO-TOOLBAR-059Followed links and anchor jumps are recorded per panel and replayed at their line 5 testsSwRS-MDOKFSTUDIO-TRUST-005The host handles the page messages of every preview, whatever the trust not on the map17 tests
SwRS-MDOKFSTUDIO-TOOLBAR-056A history state of another render is ignored superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-054 Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-058The host accepts only back or forward superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-054 Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-065The history keeps the last 50 places without duplicates superseded superseded by SwRS-MDOKFSTUDIO-TOOLBAR-059 Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-070Back and Next save an open editor first deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-071A link to another file saves an open editor first deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-072An anchor of the same page keeps the editor open deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TRUST-006A preview with restricted reads keeps every viewing action superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file