Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-015

A writer runs any palette command from an accessible slash menu

As a writer, I get a command menu from the slash without it getting in the way of ordinary text such as paths, URLs and code, type a few letters after the slash and press Enter to run a command without leaving the keyboard, see the menu where I type with a screen reader telling me what it offers, and in a table cell am offered only commands that can live in a cell.

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: Run a command from the slash menu path 2: Find a command by its alternative name, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-232: A slash opens the slash menu only where a command is meantSwRS-MDOKFSTUDIO-PALETTE-2322 teststhe writer types a slashat the start of a lineor after whitespace andthe slash menu opensSwRS-MDOKFSTUDIO-PALETTE-240: The slash query ranks matches and leaves loose matches to the textSwRS-MDOKFSTUDIO-PALETTE-2401 testthe writer types a query and thelist narrows, best matches firstSwRS-MDOKFSTUDIO-PALETTE-242: Keys and clicks drive the slash menu and run the lit commandSwRS-MDOKFSTUDIO-PALETTE-2422 teststhe writer presses Enteror Tab and the litcommand runs in one editSwRS-MDOKFSTUDIO-PALETTE-263: Slash commands have short alternative namesSwRS-MDOKFSTUDIO-PALETTE-2632 teststhe writer types an alternativename and the command that carriesit is listedSwRS-MDOKFSTUDIO-PALETTE-242: Keys and clicks drive the slash menu and run the lit commandSwRS-MDOKFSTUDIO-PALETTE-2422 teststhe writer clicks it and it runsSwRS-MDOKFSTUDIO-PALETTE-232: A slash opens the slash menu only where a command is meantSwRS-MDOKFSTUDIO-PALETTE-2322 testsa slash inside a word oran address does not openthe menuSwRS-MDOKFSTUDIO-PALETTE-238: The slash menu lists the palette commands of the mode and scopeSwRS-MDOKFSTUDIO-PALETTE-2384 testsa query that matches nothingSwRS-MDOKFSTUDIO-PALETTE-263: Slash commands have short alternative namesSwRS-MDOKFSTUDIO-PALETTE-2632 testsa command outside its mode orplace is not listedSwRS-MDOKFSTUDIO-PALETTE-242: Keys and clicks drive the slash menu and run the lit commandSwRS-MDOKFSTUDIO-PALETTE-2422 testsEscape closes the menuand keeps the typed textA block text box is open in edit modeA block text box is openin edit modeThe slash menu lists the commands of the mode (paths 1, 2)The slash menu lists thecommands of the mode2The list is narrowed to the queryThe list is narrowed tothe queryThe edit of the command is in the text (paths 1, 2)The edit of the commandis in the textThe command found by its alias is litThe command found by itsalias is lit

This map has 620 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 5 behaviours on the map are tested one by one, with 30 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-PALETTE-039A palette action edits in one undo step or leaves the text unchanged and says why not on the map4 testsSwRS-MDOKFSTUDIO-PALETTE-232A slash opens the slash menu only where a command is meant 2 testsSwRS-MDOKFSTUDIO-PALETTE-238The slash menu lists the palette commands of the mode and scope 4 testsSwRS-MDOKFSTUDIO-PALETTE-240The slash query ranks matches and leaves loose matches to the text 1 testSwRS-MDOKFSTUDIO-PALETTE-242Keys and clicks drive the slash menu and run the lit command 2 testsSwRS-MDOKFSTUDIO-PALETTE-252The slash menu is an announced listbox of text-only rows not on the map2 testsSwRS-MDOKFSTUDIO-PALETTE-256The slash menu stays next to the caret inside the viewport not on the map1 testSwRS-MDOKFSTUDIO-PALETTE-263Slash commands have short alternative names 2 testsSwRS-MDOKFSTUDIO-PALETTE-275Every syntax the preview renders can be inserted from the slash menu not on the map1 test
SwRS-MDOKFSTUDIO-PALETTE-052Bulleted list toggles a dash prefix, from the slash menu only superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-277 Markdown file
SwRS-MDOKFSTUDIO-PALETTE-268The MyST slash menu lists every admonition directive with its icon superseded superseded by SwRS-MDOKFSTUDIO-PALETTE-238 Markdown file