Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-BLOCK-001: The Edit button turns edit mode on and off and tidies up on exitSwRS-MDOKFSTUDIO-BLOCK-0014 teststhe writer clicks Edit and thepage turns edit mode on, shows iton the button and posts it to thehost, with the reading layoutunchangedSwRS-MDOKFSTUDIO-BLOCK-001: The Edit button turns edit mode on and off and tidies up on exitSwRS-MDOKFSTUDIO-BLOCK-0014 teststhe writer clicks Edit again, theopen block editor is saved and theselection and hover outline areclearedSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 teststhe edit mode starts from thesaved panel state, else the storedworkspace value, else its defaultSwRS-MDOKFSTUDIO-BLOCK-001: The Edit button turns edit mode on and off and tidies up on exitSwRS-MDOKFSTUDIO-BLOCK-0014 testswith nothing open there is nothing to tidy upSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe host remembers the edit mode for the workspaceSwRS-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 usedThe preview shows the document in reading modeThe preview shows thedocument in reading modeEdit mode is onEdit mode is onThe preview is back in reading mode with the edit state removedThe preview is back inreading mode with theedit state removedA document is opened in a new previewA document is opened ina new previewThe preview opens in the edit mode last chosenThe preview opens in theedit 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