Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TOOLBAR-001

The toolbar groups its controls, collapses and remembers its collapsed state

As a reader, I find the preview controls in four clear rows. I fold the toolbar down to its first row to free the top of the pane and unfold it again, and a collapsed toolbar stays collapsed when I reopen a preview of the same workspace, in Restricted Mode and for a standalone file too. The toolbar and its tooltips move softly (not at all when my system asks for reduced motion), and a newly opened collapsed toolbar shows briefly that it can expand. My other view choices (zoom, width, table of contents, incoming-change marks, comments) are kept by the rule of the previews that come back after a reload.

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: Collapse the toolbar and find it collapsed other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TOOLBAR-001: The toolbar has four rows of four titled buttons that float over the pageSwRS-MDOKFSTUDIO-TOOLBAR-0015 teststhe toolbar is drawn as four rowsof titled buttons, inside the paneand without overlapSwRS-MDOKFSTUDIO-TOOLBAR-007: The chevron collapses the toolbar to its first rowSwRS-MDOKFSTUDIO-TOOLBAR-0072 teststhe reader presses the collapsebutton and the rows of navigationand view are hiddenSwRS-MDOKFSTUDIO-TOOLBAR-007: The chevron collapses the toolbar to its first rowSwRS-MDOKFSTUDIO-TOOLBAR-0072 teststhe collapsed choice is kept forthe workspace and a new pagestarts from itSwRS-MDOKFSTUDIO-TOOLBAR-130: The toolbar rows unroll as one block and a load hint shows themSwRS-MDOKFSTUDIO-TOOLBAR-1303 teststhe rows unroll once and roll upagain, and a load hint shows thatthe toolbar can expand, withoutchanging the saved choiceSwRS-MDOKFSTUDIO-TOOLBAR-007: The chevron collapses the toolbar to its first rowSwRS-MDOKFSTUDIO-TOOLBAR-0072 testswhen collapsed, the hiddenrows are out of the Tab orderSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 testsa message with a value that is not a boolean is droppedwithout an answerSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 testsa stored value that is not valid is skipped and the nextsource is usedA preview page is builtA preview page is builtThe toolbar is expandedThe toolbar is expandedThe toolbar is collapsedThe toolbar is collapsedA new preview of the workspace opens collapsedA new preview of theworkspace openscollapsedThe toolbar is collapsed and shows that it can expandThe toolbar is collapsedand shows that it canexpand

This map has 931 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 34 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TOOLBAR-001The toolbar has four rows of four titled buttons that float over the page 5 testsSwRS-MDOKFSTUDIO-TOOLBAR-007The chevron collapses the toolbar to its first row 2 testsSwRS-MDOKFSTUDIO-TOOLBAR-129Toolbar, edit bar and table menu tooltips slide in from the left not on the map1 testSwRS-MDOKFSTUDIO-TOOLBAR-130The toolbar rows unroll as one block and a load hint shows them 3 testsSwRS-MDOKFSTUDIO-TRUST-005The host handles the page messages of every preview, whatever the trust not on the map17 tests
SwRS-MDOKFSTUDIO-TOOLBAR-013The host accepts only a known view preference with a valid value superseded superseded by SwRS-MDOKFSTUDIO-LIFE-169 Markdown file
SwRS-MDOKFSTUDIO-TRUST-006A preview with restricted reads keeps every viewing action superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file