Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-PALETTE-005

While a writer edits a block, the palette stays in reach, appears softly and keeps the editor open

As a writer of a long block, I always find the palette buttons without scrolling back to the top of the block, see menus appear calmly, and click palette buttons and pickers without losing my place or ending the edit.

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: Press a palette button and keep writing path 2: See the palette appear softly, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-PALETTE-021: The palette is a toolbar above the editor that sticks over a tall editorSwRS-MDOKFSTUDIO-PALETTE-02110 teststhe palette is a toolbar namedEdition palette on top of theeditor frame, and a small palettesticks over a tall editorSwRS-MDOKFSTUDIO-PALETTE-036: Leaving the frame from a palette control saves once and a press keeps the text box focusSwRS-MDOKFSTUDIO-PALETTE-0364 teststhe writer presses a palettecontrol and the text box keeps thefocusSwRS-MDOKFSTUDIO-BLOCK-047: Done, Cmd/Ctrl+Enter or leaving the text box commits the editSwRS-MDOKFSTUDIO-BLOCK-04710 teststhe writer presses Done, orCmd/Ctrl+Enter, or leaves the textbox, and the edit is committedSwRS-MDOKFSTUDIO-CORE-050: Soft appearance and colour transitions honour reduced motionSwRS-MDOKFSTUDIO-CORE-0504 teststhe palette, its popovers and theslash menu appear with a soft fadeSwRS-MDOKFSTUDIO-CORE-050: Soft appearance and colour transitions honour reduced motionSwRS-MDOKFSTUDIO-CORE-0504 testswhen the reader prefersreduced motion, no previewmotion is appliedSwRS-MDOKFSTUDIO-PALETTE-031: Palette popovers open in the frame, one at a time, and Escape or typing closes themSwRS-MDOKFSTUDIO-PALETTE-0316 testsa popover opens inside theeditor frame under its button,one at a timeSwRS-MDOKFSTUDIO-BLOCK-047: Done, Cmd/Ctrl+Enter or leaving the text box commits the editSwRS-MDOKFSTUDIO-BLOCK-04710 testsan editor whose text is unchanged closesA block text box is open in edit mode (paths 1, 2)A block text box is openin edit mode2The palette is in view above the text boxThe palette is in viewabove the text boxThe editor is open with the focus in the textThe editor is open withthe focus in the textThe edit is saved and the editor is closedThe edit is saved andthe editor is closedThe palette is shownThe palette is shown

This map has 575 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 32 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-047Done, Cmd/Ctrl+Enter or leaving the text box commits the edit 10 testsSwRS-MDOKFSTUDIO-CORE-050Soft appearance and colour transitions honour reduced motion 4 testsSwRS-MDOKFSTUDIO-PALETTE-021The palette is a toolbar above the editor that sticks over a tall editor 10 testsSwRS-MDOKFSTUDIO-PALETTE-031Palette popovers open in the frame, one at a time, and Escape or typing closes them 6 testsSwRS-MDOKFSTUDIO-PALETTE-036Leaving the frame from a palette control saves once and a press keeps the text box focus 4 testsSwRS-MDOKFSTUDIO-PALETTE-279The page does not follow an editor scroll caused by an edit not on the map1 test