Use case StRS-MDOKFSTUDIO-REVIEW-003
A reviewer comments, replies, resolves and deletes, and no comment is lost
As a reviewer, I attach a comment to the exact words I am talking about, answer a discussion and close it or remove it from the thread itself, see my name on my comments without extra work, and never lose a long comment because the file could not be written or because another one was saved at the same moment.
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: Add a comment on selected text path 2: Reply to a thread and resolve it other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Add a comment on selected text
- A reader has selected text in a body blockSwRS-MDOKFSTUDIO-REVIEW-038 no button for a collapsed selectionSwRS-MDOKFSTUDIO-REVIEW-038 · 2 tests a Comment button appears near the selection
- The Comment button is shownSwRS-MDOKFSTUDIO-REVIEW-217 · 1 test the comment box opens next to its text, inside the window
- The comment box is openSwRS-MDOKFSTUDIO-REVIEW-044 empty or blank text is not sentSwRS-MDOKFSTUDIO-REVIEW-044 Escape or Cancel closes the boxSwRS-MDOKFSTUDIO-REVIEW-044 · 3 tests the reader presses Save or Cmd/Ctrl+Enter and the typed text is sent to the host
- The comment is sentSwRS-MDOKFSTUDIO-REVIEW-049 · 1 test the comment is anchored by its lines, quote and surroundings
- The comment has its anchorSwRS-MDOKFSTUDIO-REVIEW-065 the author is the comments.authorName setting, else the Git user nameSwRS-MDOKFSTUDIO-REVIEW-054 · 8 tests the host appends it to the review comments file
- The comment is in the review comments file
Path 2: Reply to a thread and resolve it
- The thread popover is openSwRS-MDOKFSTUDIO-REVIEW-044 · 3 tests the reader sends a reply and the thread id and the trimmed text go to the host
- The reply is sent to the hostSwRS-MDOKFSTUDIO-REVIEW-074 · 3 tests the host changes the named thread only
- The thread holds the replySwRS-MDOKFSTUDIO-REVIEW-086 Delete asks inside the popoverSwRS-MDOKFSTUDIO-REVIEW-086 a refused or unanswered resolve or deleteSwRS-MDOKFSTUDIO-REVIEW-086 · 1 test the reader presses Resolve and the host sets the flag
- The thread is resolved
This map has 16,694 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 8 behaviours on the map are tested one by one, with 61 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-REVIEW-001The review comments file next to a document holds its threads as data not on the map4 testsSwRS-MDOKFSTUDIO-REVIEW-002Comment thread text stays readable on every theme not on the map3 testsSwRS-MDOKFSTUDIO-REVIEW-004A review comments file with any problem or over its limits is ignored with one warning not on the map5 testsSwRS-MDOKFSTUDIO-REVIEW-012The host posts the threads of the review comments file and follows its changes not on the map4 testsSwRS-MDOKFSTUDIO-REVIEW-021A highlight, badge or orphan entry opens the thread popover not on the map3 testsSwRS-MDOKFSTUDIO-REVIEW-038Selected body text offers a Comment button and a keyboard shortcut 2 testsSwRS-MDOKFSTUDIO-REVIEW-044A comment editor sends its text on Save or Cmd+Enter and keeps it until the host accepts it 3 testsSwRS-MDOKFSTUDIO-REVIEW-049A new comment is anchored by its lines, quote and surroundings 1 testSwRS-MDOKFSTUDIO-REVIEW-054The host writes comment changes one after another within the file limits and drops a malformed create message 8 testsSwRS-MDOKFSTUDIO-REVIEW-065A comment carries the configured, Git or system author name 6 testsSwRS-MDOKFSTUDIO-REVIEW-074Reply, resolve, reopen and delete change the named thread only, and a malformed message changes nothing 3 testsSwRS-MDOKFSTUDIO-REVIEW-086Resolve, Reopen and a confirmed Delete wait for the host, one action at a time 1 testSwRS-MDOKFSTUDIO-REVIEW-119Moved thread lines are written with the document save only not on the map3 testsSwRS-MDOKFSTUDIO-REVIEW-143A click or Enter on a chip toggles its comment box not on the map4 testsSwRS-MDOKFSTUDIO-REVIEW-186The host appends a valid reply inside the thread comment under the author not on the map6 testsSwRS-MDOKFSTUDIO-REVIEW-217The comment editors stay inside the window and follow their text 1 testSwRS-MDOKFSTUDIO-REVIEW-218Escape or a press outside closes a comment editor and asks before dropping a draft not on the map2 tests
SwRS-MDOKFSTUDIO-REVIEW-069A comment create message needs a valid anchor and a bounded body superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-054 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-070A comment reply message names a thread and carries a bounded body superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-074 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-071Resolve and delete messages name a thread; resolve carries a flag superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-074 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-073Comment messages are accepted for any revision of the document deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-REVIEW-081The thread popover of a preview sends a reply and keeps it until accepted superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-044 Markdown file