Use case StRS-MDOKFSTUDIO-LIFE-001
A writer opens previews beside the editor or as tabs, beside the built-in preview
As a writer, I open a rendered preview of the Markdown file I am editing beside the editor, from the command palette, the Explorer, the editor title or a keyboard shortcut; as a reader, I open a Markdown file straight as a preview in its own tab, without changing the editor that Markdown files open in by default, and I keep the built-in Markdown preview next to it without either breaking the other.
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. Where paths meet, they share the circle or the step.
path 1: Open a side preview path 2: Open as a tab, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Open a side preview
- A saved Markdown file is the active editorSwRS-MDOKFSTUDIO-LIFE-003 a file that is not a saved .md file opens no preview and shows a messageSwRS-MDOKFSTUDIO-LIFE-003 · 8 tests the reader runs Open Preview to Side and a preview opens beside the editor, or is revealed if one is open
- A side preview is open beside the editorSwRS-MDOKFSTUDIO-LIFE-149 the built-in Markdown preview, its commands and its settings stay as they were, beside the Studio previewSwRS-MDOKFSTUDIO-LIFE-038 several previews can be open, each with its own state and only the newest following the active editorSwRS-MDOKFSTUDIO-LIFE-151 · 3 tests the preview locks its editor group, so the files the reader opens next are shown in another group
- The side preview is open and the editor group is locked
Path 2: Open as a tab
- A saved Markdown file is the active editorSwRS-MDOKFSTUDIO-LIFE-018 a document that is not a saved Markdown file is not openedSwRS-MDOKFSTUDIO-LIFE-018 · 3 tests the reader opens it through Open With and the file shows in a tab that keeps showing it
- The file is shown in a Studio tab
This map has 220 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 5 behaviours on the map are tested one by one, with 37 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-LIFE-001The extension activates only on its own entry points not on the map5 testsSwRS-MDOKFSTUDIO-LIFE-003Open Preview to Side opens or reveals a side preview 8 testsSwRS-MDOKFSTUDIO-LIFE-018The Open With editor shows its own Markdown file 3 testsSwRS-MDOKFSTUDIO-LIFE-038Each preview has its own state and only the newest follows 2 testsSwRS-MDOKFSTUDIO-LIFE-127A restored panel reopens its document or explains why it cannot not on the map3 testsSwRS-MDOKFSTUDIO-LIFE-149The Studio runs beside the built-in Markdown preview 3 testsSwRS-MDOKFSTUDIO-LIFE-151A side preview locks its editor group 3 tests
SwRS-MDOKFSTUDIO-LIFE-010Open Preview to Side checks the file it is given superseded superseded by SwRS-MDOKFSTUDIO-LIFE-003 Markdown file
SwRS-MDOKFSTUDIO-LIFE-171The manifest declares Agents window support superseded superseded by SwRS-MDOKFSTUDIO-LIFE-001 Markdown file
SwRS-MDOKFSTUDIO-TRUST-072The extension contributes no language, grammar or editors entry deprecated deprecated Markdown file