Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-REVIEW-012: The host posts the threads of the review comments file and follows its changesSwRS-MDOKFSTUDIO-REVIEW-0124 teststhe host posts the threads of thefile to the pageSwRS-MDOKFSTUDIO-REVIEW-017: The quote of a thread is highlighted once in its block, also over a line break of the sourceSwRS-MDOKFSTUDIO-REVIEW-0172 teststhe first occurrence ofeach thread quote ishighlighted once in itsblockSwRS-MDOKFSTUDIO-REVIEW-021: A highlight, badge or orphan entry opens the thread popoverSwRS-MDOKFSTUDIO-REVIEW-0213 teststhe reader clicks the highlight,or presses Enter or Space on it,and the thread popover opensSwRS-MDOKFSTUDIO-REVIEW-219: An orphaned thread whose quote returns is placed againSwRS-MDOKFSTUDIO-REVIEW-2193 teststhe quote is found again and thethread is placed on the foundlinesSwRS-MDOKFSTUDIO-REVIEW-004: A review comments file with any problem or over its limits is ignored with one warningSwRS-MDOKFSTUDIO-REVIEW-0045 testsa file with any problem or overits limits is ignoredSwRS-MDOKFSTUDIO-REVIEW-028: Threads that cannot be placed are listed in the Orphaned comments boxSwRS-MDOKFSTUDIO-REVIEW-0283 testsa thread that cannot beplaced is listed in theOrphaned comments boxA document with a review comments file is shownA document with a reviewcomments file is shownThe threads reach the pageThe threads reach thepageThe quoted text is highlighted (paths 1, 2)The quoted text ishighlightedThe thread popover lists the commentsThe thread popover liststhe commentsA thread is listed in the Orphaned comments boxA thread is listed inthe Orphaned commentsbox

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