Use case StRS-MDOKFSTUDIO-REVIEW-001
A reviewer reads review threads on the text, and unplaceable ones are kept
As a reviewer, I see where each discussion sits in the document and read it where it applies, I prefer a thread listed as orphaned over a thread attached to the wrong text, and I trust that a damaged comments file is never shown half and never lost by a later comment.
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: Open a thread from its highlight path 2: A thread comes back after an undo other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Open a thread from its highlight
- A document with a review comments file is shownSwRS-MDOKFSTUDIO-REVIEW-004 a file with any problem or over its limits is ignoredSwRS-MDOKFSTUDIO-REVIEW-012 · 4 tests the host posts the threads of the file to the page
- The threads reach the pageSwRS-MDOKFSTUDIO-REVIEW-028 a thread that cannot be placed is listed in the Orphaned comments boxSwRS-MDOKFSTUDIO-REVIEW-017 · 2 tests the first occurrence of each thread quote is highlighted once in its block
- The quoted text is highlightedSwRS-MDOKFSTUDIO-REVIEW-021 · 3 tests the reader clicks the highlight, or presses Enter or Space on it, and the thread popover opens
- The thread popover lists the comments
Path 2: A thread comes back after an undo
- A thread is listed in the Orphaned comments boxSwRS-MDOKFSTUDIO-REVIEW-219 · 3 tests the quote is found again and the thread is placed on the found lines
- The quoted text is highlighted
This map has 1,005 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 6 behaviours on the map are tested one by one, with 47 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-004A review comments file with any problem or over its limits is ignored with one warning 5 testsSwRS-MDOKFSTUDIO-REVIEW-012The host posts the threads of the review comments file and follows its changes 4 testsSwRS-MDOKFSTUDIO-REVIEW-017The quote of a thread is highlighted once in its block, also over a line break of the source 2 testsSwRS-MDOKFSTUDIO-REVIEW-021A highlight, badge or orphan entry opens the thread popover 3 testsSwRS-MDOKFSTUDIO-REVIEW-028Threads that cannot be placed are listed in the Orphaned comments box 3 testsSwRS-MDOKFSTUDIO-REVIEW-100A thread follows its quote in the plain text, narrowed by its context, or is orphaned and keeps its lines not on the map1 testSwRS-MDOKFSTUDIO-REVIEW-107A slightly changed quote is followed by a bounded fuzzy search not on the map1 testSwRS-MDOKFSTUDIO-REVIEW-119Moved thread lines are written with the document save only not on the map3 testsSwRS-MDOKFSTUDIO-REVIEW-219An orphaned thread whose quote returns is placed again 3 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
SwRS-MDOKFSTUDIO-REVIEW-216A quote over a line break of the source is highlighted superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-017 Markdown file