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
Path 1: Follow a link and go Back
- The reader has typed in an open block editor and clicks a linkSwRS-MDOKFSTUDIO-BLOCK-205 a save refused during the flush warns that the text was not savedSwRS-MDOKFSTUDIO-BLOCK-205 · 7 tests the text typed in every open editor is saved before the page goes away
- The typed text is savedSwRS-MDOKFSTUDIO-TOOLBAR-059 an unknown line is not recorded as a placeSwRS-MDOKFSTUDIO-TOOLBAR-059 · 5 tests the link to another Markdown document, or an anchor that resolves to a source line, is recorded in the history of the panel
- The place is recordedSwRS-MDOKFSTUDIO-TOOLBAR-054 there is nowhere to go and the state is posted againSwRS-MDOKFSTUDIO-TOOLBAR-054 · 7 tests the Back button is enabled and a press posts one history move
- The reader has pressed BackSwRS-MDOKFSTUDIO-TOOLBAR-054 a history move with an invalid direction is not acceptedSwRS-MDOKFSTUDIO-TOOLBAR-059 · 5 tests Back opens the stored document with the stored line selected, or scrolls the preview to the stored line
- The reader is back at the document and the line 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