Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-002

A writer chooses which palette buttons are offered

As a writer, I pick the set of buttons that matches the Markdown flavour of my project, the next preview remembers it, and I change the mode without taking my hands off the keyboard; as a maintainer of a project, I set the palette mode that all writers of the workspace start with.

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: Switch the palette mode and find it again other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-017: Cmd/Ctrl+Shift+M reaches the mode select and Escape or Enter returns to the textSwRS-MDOKFSTUDIO-PALETTE-0171 testthe writer presses Cmd+Shift+M, orCtrl+Shift+M elsewhere, and thefocus moves to the mode selectSwRS-MDOKFSTUDIO-PALETTE-001: The palette mode decides the button sets, in registry orderSwRS-MDOKFSTUDIO-PALETTE-0018 teststhe writer chooses another modeand the palette lists the buttonsof that modeSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe choice is kept in the savedstate of the panel and stored forthe workspaceSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 testsa new page starts in the storedmode, else in the mode given bythe settingSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 testsa mode other than strict, gfm, myst or full is refused andthe stored mode staysA block text box is open in edit modeA block text box is openin edit modeThe focus is in the mode selectThe focus is in the modeselectThe palette shows the buttons of the chosen modeThe palette shows thebuttons of the chosenmodeThe mode is stored for the workspaceThe mode is stored forthe workspaceA new preview opens with the same palette modeA new preview opens withthe same palette mode

This map has 4,870 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 34 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-PALETTE-001The palette mode decides the button sets, in registry order 8 testsSwRS-MDOKFSTUDIO-PALETTE-017Cmd/Ctrl+Shift+M reaches the mode select and Escape or Enter returns to the text 1 testSwRS-MDOKFSTUDIO-PALETTE-036Leaving the frame from a palette control saves once and a press keeps the text box focus not on the map4 tests
SwRS-MDOKFSTUDIO-PALETTE-010An unknown palette mode is refused and stores nothing superseded superseded by SwRS-MDOKFSTUDIO-LIFE-169 Markdown file