Use case StRS-MDOKFSTUDIO-REVIEW-015
A writer keeps a discussion in the Markdown source and answers it from the preview
As a writer, I keep a discussion in the file itself and answer it where I read it, and I never have a thread change collide with the text I am typing.
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: Reply to an inline thread path 2: Delete an inline thread, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Reply to an inline thread
- A document holds an inline THREAD commentSwRS-MDOKFSTUDIO-REVIEW-167 · 5 tests the renderer writes a green chip with a label, and the open thread lists one entry for each message
- The thread chip is open with its messagesSwRS-MDOKFSTUDIO-REVIEW-171 the host refuses the changeSwRS-MDOKFSTUDIO-REVIEW-171 · 2 tests the reader types in the Reply area and presses Reply, and the trimmed text goes to the host with the source lines of the thread
- The reply is sent with the lines of the threadSwRS-MDOKFSTUDIO-REVIEW-186 lines that are not exactly one threadSwRS-MDOKFSTUDIO-REVIEW-186 · 6 tests the host appends the reply inside the thread comment under the author
- The reply is in the thread comment
Path 2: Delete an inline thread
- The thread chip is open with its messagesSwRS-MDOKFSTUDIO-REVIEW-171 · 2 tests the reader presses Delete thread, which asks no confirmation, and the delete goes to the host
- The delete is sent with the lines of the threadSwRS-MDOKFSTUDIO-REVIEW-192 · 4 tests the host removes the lines of the thread and one surrounding blank line
- The thread is gone from the document
This map has 672 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 4 behaviours on the map are tested one by one, with 25 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-PALETTE-114Thread inserts an empty comment thread after the block with the author and the date not on the map1 testSwRS-MDOKFSTUDIO-REVIEW-167An inline THREAD comment shows as a thread chip with its messages 5 testsSwRS-MDOKFSTUDIO-REVIEW-171An open inline thread offers Reply and Delete thread 2 testsSwRS-MDOKFSTUDIO-REVIEW-186The host appends a valid reply inside the thread comment under the author 6 testsSwRS-MDOKFSTUDIO-REVIEW-192Deleting an inline thread removes whole lines, and a malformed delete message changes nothing 4 tests
SwRS-MDOKFSTUDIO-REVIEW-178An inline thread change message carries valid lines and a non-blank text superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-186, SwRS-MDOKFSTUDIO-REVIEW-192 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-190An empty or too long reply is refused by the host deprecated deprecated Markdown file