Use case StRS-MDOKFSTUDIO-REVIEW-008
Review threads follow edits and renames of the document
As a reviewer, I find a discussion on its text after the author edited the document around it, and I keep my comments when the author renames the document.
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: Keep a thread on its text while the document changes path 2: Rename a document other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Keep a thread on its text while the document changes
- The text of a document with review threads changesSwRS-MDOKFSTUDIO-REVIEW-100 a quote found at one other place is followed by its threadSwRS-MDOKFSTUDIO-REVIEW-107 a slightly changed quote is followed by a bounded fuzzy searchSwRS-MDOKFSTUDIO-REVIEW-100 a deleted quote orphans the thread and it keeps its linesSwRS-MDOKFSTUDIO-REVIEW-094 · 2 tests lines inserted or removed above a thread move its stored lines in memory
- The stored lines of the thread have movedSwRS-MDOKFSTUDIO-REVIEW-119 typing alone writes nothingSwRS-MDOKFSTUDIO-REVIEW-119 · 3 tests the document save writes the moved lines to the comments file
- The comments file holds the new lines
Path 2: Rename a document
- A document is renamed or movedSwRS-MDOKFSTUDIO-REVIEW-125 a rename never overwrites a comments fileSwRS-MDOKFSTUDIO-REVIEW-125 · 2 tests its comments file is renamed to the new name
- The comments file follows the document
This map has 94 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 42 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-REVIEW-094Edits move the stored lines of a thread in memory and write nothing to its file 2 testsSwRS-MDOKFSTUDIO-REVIEW-100A thread follows its quote in the plain text, narrowed by its context, or is orphaned and keeps its lines 1 testSwRS-MDOKFSTUDIO-REVIEW-107A slightly changed quote is followed by a bounded fuzzy search 1 testSwRS-MDOKFSTUDIO-REVIEW-119Moved thread lines are written with the document save only 3 testsSwRS-MDOKFSTUDIO-REVIEW-125A renamed document takes its review comments file along 2 testsSwRS-MDOKFSTUDIO-REVIEW-219An orphaned thread whose quote returns is placed again not on the map3 tests
SwRS-MDOKFSTUDIO-REVIEW-101A thread whose quote is gone or ambiguous is orphaned and keeps its lines superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-100 Markdown file