Use case StRS-MDOKFSTUDIO-LIFE-014
Previews come back after a reload, and each document keeps its reading place and view choices
As a reader, I reload the window and my previews come back on the same documents, at the same place, with their open sections. I return to a document and find it at its own place, with its own Description choice. The view choices I made (zoom, width, table of contents and the others) are found again when I reopen a preview of the same workspace.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per 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: A reload brings the preview back path 2: A view choice is remembered other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: A reload brings the preview back
- A preview was open when VS Code restored its panelSwRS-MDOKFSTUDIO-LIFE-127 a saved state that cannot be restored shows Preview source missing with the reasonSwRS-MDOKFSTUDIO-LIFE-127 · 3 tests the panel opens the file its saved state names, at the saved reading position and open sections
- The panel shows the file at its saved place
Path 2: A view choice is remembered
- The reader changes a view choice on the pageSwRS-MDOKFSTUDIO-LIFE-169 the host refuses a value outside the tableSwRS-MDOKFSTUDIO-LIFE-169 · 15 tests the page keeps it in its saved state and the host stores it for the workspace
- The view choice is storedSwRS-MDOKFSTUDIO-LIFE-170 an invalid value is ignored and the next source is usedSwRS-MDOKFSTUDIO-LIFE-170 · 14 tests when a page opens, each choice starts from the saved panel state, else the stored workspace value, else the default
- The page opens with the view choice
This map has 8 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 26 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-FMSCHEMA-014The Description column collapses and the choice is kept per document not on the map6 testsSwRS-MDOKFSTUDIO-LIFE-038Each preview has its own state and only the newest follows not on the map2 testsSwRS-MDOKFSTUDIO-LIFE-125The reading state of recent documents is saved within bounds not on the map4 testsSwRS-MDOKFSTUDIO-LIFE-127A restored panel reopens its document or explains why it cannot 3 testsSwRS-MDOKFSTUDIO-LIFE-169A view choice made on the page is stored for the workspace 15 testsSwRS-MDOKFSTUDIO-LIFE-170A new page starts each view choice from the panel, stored or default value 14 tests
SwRS-MDOKFSTUDIO-LIFE-136A saved state keeps at most 100 open-section indexes between 0 and 9999 deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LIFE-137A saved state keeps a focused block id of at most 200 characters, a selection of at most 4096 and a boolean Description state deprecated deprecated Markdown file