Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-013

A writer picks labels, documents, citations and code languages from host lists, with feedback

As a writer, I link to a label, a document or a bibliography entry by choosing it, not by typing its name from memory, choose a code language from a list and get a highlighted code block without trial and error, and never wait on an editor that is stuck: a refusal or a silent failure is explained and I can try again.

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: Refer to a label of the document path 2: Fence code in a language, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-140: Reference and Citation open a filterable list filled by the hostSwRS-MDOKFSTUDIO-PALETTE-1402 teststhe writer presses Reference and apopover opens with a filter field,showing Loading... until the hostanswersSwRS-MDOKFSTUDIO-PALETTE-178: The host lists the label targets of the documentSwRS-MDOKFSTUDIO-PALETTE-1782 teststhe host lists the (name)= linesof the document that lie outsidecode fencesSwRS-MDOKFSTUDIO-PALETTE-147: A chosen label is written as a ref roleSwRS-MDOKFSTUDIO-PALETTE-1471 testthe writer chooses a label and{ref} with the label in backticksis written in place of theselectionSwRS-MDOKFSTUDIO-PALETTE-054: The Code block list wraps lines in a fence of a highlighted languageSwRS-MDOKFSTUDIO-PALETTE-0542 teststhe writer presses Code block anda menu lists text, then eachlanguage the preview highlights,once and sortedSwRS-MDOKFSTUDIO-PALETTE-054: The Code block list wraps lines in a fence of a highlighted languageSwRS-MDOKFSTUDIO-PALETTE-0542 teststhe writer chooses a language andthe touched lines are wrapped in afence of that languageSwRS-MDOKFSTUDIO-PALETTE-178: The host lists the label targets of the documentSwRS-MDOKFSTUDIO-PALETTE-1782 testslines inside fences and badnames are not listedSwRS-MDOKFSTUDIO-PALETTE-140: Reference and Citation open a filterable list filled by the hostSwRS-MDOKFSTUDIO-PALETTE-1402 teststhe list is empty, the host fails, or the list is cutSwRS-MDOKFSTUDIO-PALETTE-054: The Code block list wraps lines in a fence of a highlighted languageSwRS-MDOKFSTUDIO-PALETTE-0542 testsno language or an invalid language nameThe palette is shown above the text box (paths 1, 2)The palette is shownabove the text box2The host is asked for the labelsThe host is asked forthe labelsThe labels are listedThe labels are listedA ref role is in the textA ref role is in thetextThe language menu is openThe language menu isopenThe lines are wrapped in a fenced code blockThe lines are wrapped ina fenced code block

This map has 143 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 17 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-047Done, Cmd/Ctrl+Enter or leaving the text box commits the edit not on the map10 testsSwRS-MDOKFSTUDIO-PALETTE-054The Code block list wraps lines in a fence of a highlighted language 2 testsSwRS-MDOKFSTUDIO-PALETTE-140Reference and Citation open a filterable list filled by the host 2 testsSwRS-MDOKFSTUDIO-PALETTE-147A chosen label is written as a ref role 1 testSwRS-MDOKFSTUDIO-PALETTE-148Document link picks a Markdown file and writes a doc role not on the map5 testsSwRS-MDOKFSTUDIO-PALETTE-149A chosen bibliography key is written as a cite role not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-178The host lists the label targets of the document 2 testsSwRS-MDOKFSTUDIO-PALETTE-183The host scans nearby bibliography files for citation keys within bounds not on the map3 testsSwRS-MDOKFSTUDIO-TRUST-005The host handles the page messages of every preview, whatever the trust not on the map17 testsSwRS-MDOKFSTUDIO-TRUST-090Every page request is answered once by its id and result type, or ends with a readable error not on the map14 tests
SwRS-MDOKFSTUDIO-PALETTE-174The host drops a request that does not name the render it holds deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TRUST-006A preview with restricted reads keeps every viewing action superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file