Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-GFM-016: Task list markers render as checkboxes with their source positionSwRS-MDOKFSTUDIO-GFM-0162 teststhe page renders a checkbox inplace of the bulletSwRS-MDOKFSTUDIO-GFM-021: Clicking a checkbox toggles one source characterSwRS-MDOKFSTUDIO-GFM-0218 testsa click edits only the characterbetween the bracketsSwRS-MDOKFSTUDIO-BLOCK-058: Every host source edit is one undo step, renders once and reports a failed applySwRS-MDOKFSTUDIO-BLOCK-0588 teststhe edit is one undo step and thepreview refreshes onceSwRS-MDOKFSTUDIO-GFM-016: Task list markers render as checkboxes with their source positionSwRS-MDOKFSTUDIO-GFM-0162 testsa marker with anothermeaning stays literalSwRS-MDOKFSTUDIO-GFM-021: Clicking a checkbox toggles one source characterSwRS-MDOKFSTUDIO-GFM-0218 teststhe host refuses the toggle, the checkbox reverts and thereason shows next to itSwRS-MDOKFSTUDIO-BLOCK-041: One edit at a time: an open editor blocks other edits, opens and refreshesSwRS-MDOKFSTUDIO-BLOCK-04116 testsan open block editor makes the toggle refused with its reasonA task-list item holds [ ]A task-list item holds []The task shows a checkboxThe task shows acheckboxThe source holds [x] for the taskThe source holds [x] forthe taskThe checkbox is shown tickedThe checkbox is shownticked

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