Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-LIFE-022

Closing a preview or a folder leaves nothing behind

As a reader, I close a preview or a document, remove a folder from the workspace or turn the extension off, and no work or warning of that preview lingers. When the folder of a preview I keep open is removed, the preview stays on its panel and still shows its file, with restricted reads.

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: Close a preview path 2: Remove the folder of a preview other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-LIFE-143: Closing a preview or folder leaves nothing behindSwRS-MDOKFSTUDIO-LIFE-1435 teststhe reader closes the panel or thedocument, and the preview stopsits render queue, watchers andProblems entriesSwRS-MDOKFSTUDIO-LIFE-143: Closing a preview or folder leaves nothing behindSwRS-MDOKFSTUDIO-LIFE-1435 teststhe reader removes the folder, thepreview's work is disposed and thesame panel shows the file againwith restricted readsSwRS-MDOKFSTUDIO-LIFE-143: Closing a preview or folder leaves nothing behindSwRS-MDOKFSTUDIO-LIFE-1435 testsa folder that holds the file isadded back and the preview getsfull reads again on the same panelSwRS-MDOKFSTUDIO-LIFE-143: Closing a preview or folder leaves nothing behindSwRS-MDOKFSTUDIO-LIFE-1435 testsanother live preview of the same root or file keeps itswatcher and its Problems entriesSwRS-MDOKFSTUDIO-LIFE-143: Closing a preview or folder leaves nothing behindSwRS-MDOKFSTUDIO-LIFE-1435 testsa removed folder with no document to show disposes thepreview and its panelA preview is open, rendering or idleA preview is open,rendering or idleThe preview has left nothing behindThe preview has leftnothing behindA preview shows a file of a workspace folderA preview shows a fileof a workspace folderThe preview shows its file with restricted readsThe preview shows itsfile with restrictedreadsThe preview has full reads againThe preview has fullreads again

This map has 8 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 1 behaviours on the map are tested one by one, with 7 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-LIFE-143Closing a preview or folder leaves nothing behind 5 tests