Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-MYST-016

Grids, cards and tabs lay out a document in the preview

As a writer, I want my card layouts and tab sets to look and behave as readers will see them, also in a narrow pane, so that I can lay out my document in VS Code.

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.

path 1: A grid of cards path 2: Tabs other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-MYST-053: Grids lay out cards in responsive columnsSwRS-MDOKFSTUDIO-MYST-0532 teststhe page lays out the items in thecolumns of its argument, chosen bythe pane widthSwRS-MDOKFSTUDIO-MYST-100: A card, in a grid or alone, shows header, title, body and footerSwRS-MDOKFSTUDIO-MYST-1005 testseach card shows its header, title,body and footerSwRS-MDOKFSTUDIO-MYST-098: Tab sets render a tab bar with one panel shown at a timeSwRS-MDOKFSTUDIO-MYST-0984 teststhe page renders a tab bar withthe tab-item titles and shows thepanel of the selected tabSwRS-MDOKFSTUDIO-MYST-099: Tabs follow the keyboard and the clickSwRS-MDOKFSTUDIO-MYST-0994 testsa click on a tab selects it andshows only its panelSwRS-MDOKFSTUDIO-MYST-053: Grids lay out cards in responsive columnsSwRS-MDOKFSTUDIO-MYST-0532 testsa grid deeper than 8 levelsstays an unexpandedplaceholderSwRS-MDOKFSTUDIO-MYST-100: A card, in a grid or alone, shows header, title, body and footerSwRS-MDOKFSTUDIO-MYST-1005 testsreserved or malformed class names are droppedSwRS-MDOKFSTUDIO-MYST-099: Tabs follow the keyboard and the clickSwRS-MDOKFSTUDIO-MYST-0994 teststhe arrow, Home and End keys select a tab and move the focusto itA document holds a grid with grid-item-card itemsA document holds a gridwith grid-item-carditemsThe cards are laid out in columnsThe cards are laid outin columnsThe grid shows its cardsThe grid shows its cardsA document holds a tab set with tab itemsA document holds a tabset with tab itemsThe tab bar shows the selected panelThe tab bar shows theselected panelThe panel of the clicked tab is shownThe panel of the clickedtab is shown

This map has 31 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 21 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-MYST-053Grids lay out cards in responsive columns 2 testsSwRS-MDOKFSTUDIO-MYST-098Tab sets render a tab bar with one panel shown at a time 4 testsSwRS-MDOKFSTUDIO-MYST-099Tabs follow the keyboard and the click 4 testsSwRS-MDOKFSTUDIO-MYST-100A card, in a grid or alone, shows header, title, body and footer 5 tests