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
Path 1: Run a command from the slash menu
- A block text box is open in edit modeSwRS-MDOKFSTUDIO-PALETTE-232 a slash inside a word or an address does not open the menuSwRS-MDOKFSTUDIO-PALETTE-232 · 2 tests the writer types a slash at the start of a line or after whitespace and the slash menu opens
- The slash menu lists the commands of the modeSwRS-MDOKFSTUDIO-PALETTE-238 a query that matches nothingSwRS-MDOKFSTUDIO-PALETTE-240 · 1 test the writer types a query and the list narrows, best matches first
- The list is narrowed to the querySwRS-MDOKFSTUDIO-PALETTE-242 Escape closes the menu and keeps the typed textSwRS-MDOKFSTUDIO-PALETTE-242 · 2 tests the writer presses Enter or Tab and the lit command runs in one edit
- The edit of the command is in the text
Path 2: Find a command by its alternative name
- The slash menu lists the commands of the modeSwRS-MDOKFSTUDIO-PALETTE-263 a command outside its mode or place is not listedSwRS-MDOKFSTUDIO-PALETTE-263 · 2 tests the writer types an alternative name and the command that carries it is listed
- The command found by its alias is litSwRS-MDOKFSTUDIO-PALETTE-242 · 2 tests the writer clicks it and it runs
- The edit of the command is in the text
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