Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-LIFE-127: A restored panel reopens its document or explains why it cannotSwRS-MDOKFSTUDIO-LIFE-1273 teststhe panel opens the file its savedstate names, at the saved readingposition and open sectionsSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe page keeps it in its savedstate and the host stores it forthe workspaceSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 testswhen a page opens, each choicestarts from the saved panel state,else the stored workspace value,else the defaultSwRS-MDOKFSTUDIO-LIFE-127: A restored panel reopens its document or explains why it cannotSwRS-MDOKFSTUDIO-LIFE-1273 testsa saved state that cannot be restored shows Preview sourcemissing with the reasonSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe host refuses a valueoutside the tableSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 testsan invalid value is ignored and the next source is usedA preview was open when VS Code restored its panelA preview was open whenVS Code restored itspanelThe panel shows the file at its saved placeThe panel shows the fileat its saved placeThe reader changes a view choice on the pageThe reader changes aview choice on the pageThe view choice is storedThe view choice isstoredThe page opens with the view choiceThe page opens with theview 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