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
Path 1: Open a comment chip
- A document holds an HTML commentSwRS-MDOKFSTUDIO-REVIEW-139 the word TODO shows as a green chipSwRS-MDOKFSTUDIO-REVIEW-133 a tool comment gets no chipSwRS-MDOKFSTUDIO-REVIEW-133 · 2 tests the renderer writes a gray chip labelled comment
- A chip stands in the textSwRS-MDOKFSTUDIO-REVIEW-003 in edit mode the opened block is titled with the literal tagSwRS-MDOKFSTUDIO-REVIEW-152 the Comments button hides the gray and thread chipsSwRS-MDOKFSTUDIO-REVIEW-143 · 4 tests the reader clicks the chip, or presses Enter or Space on it, and its comment box opens
- The comment box shows the comment text
Path 2: Mark a line as TODO
- A block editor is open on a lineSwRS-MDOKFSTUDIO-REVIEW-160 lines that are all wrapped are unwrapped by the same actionSwRS-MDOKFSTUDIO-REVIEW-160 a line that already holds a comment end is never wrappedSwRS-MDOKFSTUDIO-REVIEW-160 · 3 tests the writer runs the TODO action from the edition palette or the slash menu and each touched line is wrapped in a TODO comment
- The touched lines are wrapped in a TODO comment, 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