Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-LIFE-003: Open Preview to Side opens or reveals a side previewSwRS-MDOKFSTUDIO-LIFE-0038 teststhe reader runs Open Preview toSide and a preview opens besidethe editor, or is revealed if oneis openSwRS-MDOKFSTUDIO-LIFE-151: A side preview locks its editor groupSwRS-MDOKFSTUDIO-LIFE-1513 teststhe preview locks its editorgroup, so the files the readeropens next are shown in anothergroupSwRS-MDOKFSTUDIO-LIFE-018: The Open With editor shows its own Markdown fileSwRS-MDOKFSTUDIO-LIFE-0183 teststhe reader opens it through OpenWith and the file shows in a tabthat keeps showing itSwRS-MDOKFSTUDIO-LIFE-003: Open Preview to Side opens or reveals a side previewSwRS-MDOKFSTUDIO-LIFE-0038 testsa file that is not a saved.md file opens no previewand shows a messageSwRS-MDOKFSTUDIO-LIFE-018: The Open With editor shows its own Markdown fileSwRS-MDOKFSTUDIO-LIFE-0183 testsa document that is not asaved Markdown file is notopenedSwRS-MDOKFSTUDIO-LIFE-149: The Studio runs beside the built-in Markdown previewSwRS-MDOKFSTUDIO-LIFE-1493 teststhe built-in Markdown preview, its commands and its settingsstay as they were, beside the Studio previewSwRS-MDOKFSTUDIO-LIFE-038: Each preview has its own state and only the newest followsSwRS-MDOKFSTUDIO-LIFE-0382 testsseveral previews can be open, each with its own state andonly the newest following the active editorA saved Markdown file is the active editor (paths 1, 2)A saved Markdown file isthe active editor2A side preview is open beside the editorA side preview is openbeside the editorThe side preview is open and the editor group is lockedThe side preview is openand the editor group islockedThe file is shown in a Studio tabThe file is shown in aStudio 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