Use case StRS-MDOKFSTUDIO-GFM-003
A writer toggles task checkboxes from the preview
As a writer or reviewer, I tick task checkboxes directly in the preview and the source changes by exactly that character.
Use case diagram
How it is split
This use case (StRS) is reached by one path (the 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: Tick a task other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Tick a task
- A task-list item holds [ ]SwRS-MDOKFSTUDIO-GFM-016 a marker with another meaning stays literalSwRS-MDOKFSTUDIO-GFM-016 · 2 tests the page renders a checkbox in place of the bullet
- The task shows a checkboxSwRS-MDOKFSTUDIO-GFM-021 the host refuses the toggle, the checkbox reverts and the reason shows next to itSwRS-MDOKFSTUDIO-BLOCK-041 an open block editor makes the toggle refused with its reasonSwRS-MDOKFSTUDIO-GFM-021 · 8 tests a click edits only the character between the brackets
- The source holds [x] for the taskSwRS-MDOKFSTUDIO-BLOCK-058 · 8 tests the edit is one undo step and the preview refreshes once
- The checkbox is shown ticked
This map has 475 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 4 behaviours on the map are tested one by one, with 30 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-GFM-016Task list markers render as checkboxes with their source position 2 testsSwRS-MDOKFSTUDIO-GFM-021Clicking a checkbox toggles one source character 8 tests
SwRS-MDOKFSTUDIO-GFM-017Task-list checkboxes sit in the bullet gutter superseded superseded by SwRS-MDOKFSTUDIO-GFM-016 Markdown file
SwRS-MDOKFSTUDIO-GFM-018Checkbox markers stay literal where they have another meaning superseded superseded by SwRS-MDOKFSTUDIO-GFM-016 Markdown file
SwRS-MDOKFSTUDIO-GFM-019CRLF documents keep exact checkbox columns superseded superseded by SwRS-MDOKFSTUDIO-GFM-016 Markdown file
SwRS-MDOKFSTUDIO-GFM-020The webview keeps checkbox inputs superseded superseded by SwRS-MDOKFSTUDIO-GFM-016 Markdown file
SwRS-MDOKFSTUDIO-GFM-022A checkbox toggle is one undo step superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-058 Markdown file
SwRS-MDOKFSTUDIO-GFM-023A pending toggle blocks further clicks superseded superseded by SwRS-MDOKFSTUDIO-GFM-021 Markdown file
SwRS-MDOKFSTUDIO-GFM-024A refused toggle reverts the checkbox with a reason superseded superseded by SwRS-MDOKFSTUDIO-GFM-021 Markdown file
SwRS-MDOKFSTUDIO-GFM-025Checkbox clicks are refused during an open edit superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-041 Markdown file
SwRS-MDOKFSTUDIO-GFM-026Read-only previews disable checkboxes superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file
SwRS-MDOKFSTUDIO-GFM-027The host validates checkbox toggle messages superseded superseded by SwRS-MDOKFSTUDIO-GFM-021 Markdown file
SwRS-MDOKFSTUDIO-GFM-028Content patches clear pending toggles superseded superseded by SwRS-MDOKFSTUDIO-GFM-021 Markdown file
SwRS-MDOKFSTUDIO-GFM-039Radio choice lists render as a radio group and a click moves the selection in the source superseded superseded by SwRS-MDOKFSTUDIO-GFM-040, SwRS-MDOKFSTUDIO-GFM-041 Markdown file