Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-REVIEW-038: Selected body text offers a Comment button and a keyboard shortcutSwRS-MDOKFSTUDIO-REVIEW-0382 testsa Comment button appears near theselectionSwRS-MDOKFSTUDIO-REVIEW-217: The comment editors stay inside the window and follow their textSwRS-MDOKFSTUDIO-REVIEW-2171 testthe comment box opens next to itstext, inside the windowSwRS-MDOKFSTUDIO-REVIEW-044: A comment editor sends its text on Save or Cmd+Enter and keeps it until the host accepts itSwRS-MDOKFSTUDIO-REVIEW-0443 teststhe reader presses Save orCmd/Ctrl+Enter and the typed textis sent to the hostSwRS-MDOKFSTUDIO-REVIEW-049: A new comment is anchored by its lines, quote and surroundingsSwRS-MDOKFSTUDIO-REVIEW-0491 testthe comment is anchored by itslines, quote and surroundingsSwRS-MDOKFSTUDIO-REVIEW-054: The host writes comment changes one after another within the file limits and drops a malformed create messageSwRS-MDOKFSTUDIO-REVIEW-0548 teststhe host appends it to the reviewcomments fileSwRS-MDOKFSTUDIO-REVIEW-044: A comment editor sends its text on Save or Cmd+Enter and keeps it until the host accepts itSwRS-MDOKFSTUDIO-REVIEW-0443 teststhe reader sends a reply and thethread id and the trimmed text goto the hostSwRS-MDOKFSTUDIO-REVIEW-074: Reply, resolve, reopen and delete change the named thread only, and a malformed message changes nothingSwRS-MDOKFSTUDIO-REVIEW-0743 teststhe host changes the named threadonlySwRS-MDOKFSTUDIO-REVIEW-086: Resolve, Reopen and a confirmed Delete wait for the host, one action at a timeSwRS-MDOKFSTUDIO-REVIEW-0861 testthe reader presses Resolve and thehost sets the flagSwRS-MDOKFSTUDIO-REVIEW-038: Selected body text offers a Comment button and a keyboard shortcutSwRS-MDOKFSTUDIO-REVIEW-0382 testsno button for a collapsed selectionSwRS-MDOKFSTUDIO-REVIEW-044: A comment editor sends its text on Save or Cmd+Enter and keeps it until the host accepts itSwRS-MDOKFSTUDIO-REVIEW-0443 testsempty or blank text is not sentSwRS-MDOKFSTUDIO-REVIEW-044: A comment editor sends its text on Save or Cmd+Enter and keeps it until the host accepts itSwRS-MDOKFSTUDIO-REVIEW-0443 testsEscape or Cancel closes the boxSwRS-MDOKFSTUDIO-REVIEW-065: A comment carries the configured, Git or system author nameSwRS-MDOKFSTUDIO-REVIEW-0656 teststhe author is the comments.authorName setting, else the Gituser nameSwRS-MDOKFSTUDIO-REVIEW-086: Resolve, Reopen and a confirmed Delete wait for the host, one action at a timeSwRS-MDOKFSTUDIO-REVIEW-0861 testDelete asks inside the popoverSwRS-MDOKFSTUDIO-REVIEW-086: Resolve, Reopen and a confirmed Delete wait for the host, one action at a timeSwRS-MDOKFSTUDIO-REVIEW-0861 testa refused or unanswered resolve or deleteA reader has selected text in a body blockA reader has selectedtext in a body blockThe Comment button is shownThe Comment button isshownThe comment box is openThe comment box is openThe comment is sentThe comment is sentThe comment has its anchorThe comment has itsanchorThe comment is in the review comments fileThe comment is in thereview comments fileThe thread popover is openThe thread popover isopenThe reply is sent to the hostThe reply is sent to thehostThe thread holds the replyThe thread holds thereplyThe thread is resolvedThe thread is resolved

Path 1: Add a comment on selected text

  1. 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
  2. The Comment button is shownSwRS-MDOKFSTUDIO-REVIEW-217 · 1 test the comment box opens next to its text, inside the window
  3. 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
  4. The comment is sentSwRS-MDOKFSTUDIO-REVIEW-049 · 1 test the comment is anchored by its lines, quote and surroundings
  5. 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
  6. The comment is in the review comments file

Path 2: Reply to a thread and resolve it

  1. 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
  2. The reply is sent to the hostSwRS-MDOKFSTUDIO-REVIEW-074 · 3 tests the host changes the named thread only
  3. 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
  4. 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