Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-PALETTE-252

The slash menu is an announced listbox of text-only rows

While the slash menu is open, the extension SHALL expose it as a listbox named Commands with option rows, announce the number of commands in a polite live region, set every entry as text, and keep the lit command readable when the system forces colours.

Part of StRS-MDOKFSTUDIO-PALETTE-015, outside the paths drawn on its map.

Scenarios 5

The situations the tests check; open one to read it.

nominalOpen menu
Givenan open menu
Whenthe accessibility state is read
Thenthe list has the role listbox and the name Commands, the rows have the role option and the text box points at the lit row with aria-activedescendant, aria-expanded and aria-controls
boundaryClosed menu
Giventhe menu closes
Whenthe text box is read
Thenthe three attributes are gone
boundaryLive region count
MatchesLive region text
33 commands available
11 command available
noneNo command
refusalEntry text is never markup
GivenWhenOutcome
a command label that contains a tagthe menu rendersthe tag is shown as text
a command with an iconthe menu rendersthe icon is the static SVG of the palette button, the only markup
a command with a shortcut and a categorythe menu rendersboth are set as text
boundaryForced colours
ModeColours
system in forced-colours modethe menu is drawn with Canvas and CanvasText; the lit command has background Highlight, text HighlightText and its category and shortcut HighlightText
usual modethe theme colours are used

Implemented in 2

Tested by 2