Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-REVIEW-012

A writer sees HTML comments and TODO notes as chips and toggles them

As a writer, I see the notes left in the source without opening the source, I read the clean text when I do not need the notes, and I mark a line as a to-do and unmark it without typing the comment markers.

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: Open a comment chip path 2: Mark a line as TODO other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-REVIEW-133: HTML comments show as gray chips carried as dataSwRS-MDOKFSTUDIO-REVIEW-1332 teststhe renderer writes a gray chiplabelled commentSwRS-MDOKFSTUDIO-REVIEW-143: A click or Enter on a chip toggles its comment boxSwRS-MDOKFSTUDIO-REVIEW-1434 teststhe reader clicks the chip, orpresses Enter or Space on it, andits comment box opensSwRS-MDOKFSTUDIO-REVIEW-160: The TODO action wraps or unwraps the touched lines in TODO commentsSwRS-MDOKFSTUDIO-REVIEW-1603 teststhe writer runs the TODO actionfrom the edition palette or theslash menu and each touched lineis wrapped in a TODO commentSwRS-MDOKFSTUDIO-REVIEW-139: TODO words and TODO comments show as green chipsSwRS-MDOKFSTUDIO-REVIEW-1391 testthe word TODO shows as agreen chipSwRS-MDOKFSTUDIO-REVIEW-133: HTML comments show as gray chips carried as dataSwRS-MDOKFSTUDIO-REVIEW-1332 testsa tool comment gets no chipSwRS-MDOKFSTUDIO-REVIEW-003: Edit mode titles an open comment with its literal tagSwRS-MDOKFSTUDIO-REVIEW-0034 testsin edit mode the opened block is titled with the literal tagSwRS-MDOKFSTUDIO-REVIEW-152: The showComments setting and the Comments button hide and show every review mark, and a message of another render changes nothingSwRS-MDOKFSTUDIO-REVIEW-15210 teststhe Comments button hides the gray and thread chipsSwRS-MDOKFSTUDIO-REVIEW-160: The TODO action wraps or unwraps the touched lines in TODO commentsSwRS-MDOKFSTUDIO-REVIEW-1603 testslines that are all wrapped are unwrapped by the same actionSwRS-MDOKFSTUDIO-REVIEW-160: The TODO action wraps or unwraps the touched lines in TODO commentsSwRS-MDOKFSTUDIO-REVIEW-1603 testsa line that already holds a comment end is never wrappedA document holds an HTML commentA document holds an HTMLcommentA chip stands in the textA chip stands in thetextThe comment box shows the comment textThe comment box showsthe comment textA block editor is open on a lineA block editor is openon a lineThe touched lines are wrapped in a TODO comment, or unwrappedThe touched lines arewrapped in a TODOcomment, or unwrapped

This map has 166 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 45 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-REVIEW-003Edit mode titles an open comment with its literal tag 4 testsSwRS-MDOKFSTUDIO-REVIEW-133HTML comments show as gray chips carried as data 2 testsSwRS-MDOKFSTUDIO-REVIEW-139TODO words and TODO comments show as green chips 1 testSwRS-MDOKFSTUDIO-REVIEW-143A click or Enter on a chip toggles its comment box 4 testsSwRS-MDOKFSTUDIO-REVIEW-152The showComments setting and the Comments button hide and show every review mark, and a message of another render changes nothing 10 testsSwRS-MDOKFSTUDIO-REVIEW-160The TODO action wraps or unwraps the touched lines in TODO comments 3 tests
SwRS-MDOKFSTUDIO-REVIEW-156A show-comments message of another render is ignored superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-152 Markdown file