Use case StRS-MDOKFSTUDIO-BLOCK-001
A writer switches edit mode and finds it as left
As a writer, I turn edit mode on to change my document in the preview and off to read it again, without losing anything I typed, and I reopen a document to find the preview in the edit mode I last chose, never offered editing in a preview that cannot change the file.
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: Turn edit mode on and off path 2: Reopen a document other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Turn edit mode on and off
- The preview shows the document in reading modeSwRS-MDOKFSTUDIO-BLOCK-001 · 4 tests the writer clicks Edit and the page turns edit mode on, shows it on the button and posts it to the host, with the reading layout unchanged
- Edit mode is onSwRS-MDOKFSTUDIO-BLOCK-001 with nothing open there is nothing to tidy upSwRS-MDOKFSTUDIO-LIFE-169 the host remembers the edit mode for the workspaceSwRS-MDOKFSTUDIO-BLOCK-001 · 4 tests the writer clicks Edit again, the open block editor is saved and the selection and hover outline are cleared
- The preview is back in reading mode with the edit state removed
Path 2: Reopen a document
- A document is opened in a new previewSwRS-MDOKFSTUDIO-LIFE-170 an invalid value is ignored and the next source is usedSwRS-MDOKFSTUDIO-LIFE-170 · 14 tests the edit mode starts from the saved panel state, else the stored workspace value, else its default
- The preview opens in the edit mode last chosen
This map has 136 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 27 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-BLOCK-001The Edit button turns edit mode on and off and tidies up on exit 4 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 testsSwRS-MDOKFSTUDIO-LIFE-172A document opens in preview mode and E switches to edit mode not on the map2 testsSwRS-MDOKFSTUDIO-TRUST-001A document is editable whatever the trust; only its reads are restricted not on the map16 tests
SwRS-MDOKFSTUDIO-BLOCK-012A read-only preview has no Edit button deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-BLOCK-236previewEditModeChanged carries a boolean edit mode superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-259 Markdown file
SwRS-MDOKFSTUDIO-BLOCK-258A click on a card title or option opens the editor on its own line, the title is inline text and Enter saves a one-line editor superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-260, SwRS-MDOKFSTUDIO-BLOCK-261 Markdown file