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
Path 1: A grid of cards
- A document holds a grid with grid-item-card itemsSwRS-MDOKFSTUDIO-MYST-053 a grid deeper than 8 levels stays an unexpanded placeholderSwRS-MDOKFSTUDIO-MYST-053 · 2 tests the page lays out the items in the columns of its argument, chosen by the pane width
- The cards are laid out in columnsSwRS-MDOKFSTUDIO-MYST-100 reserved or malformed class names are droppedSwRS-MDOKFSTUDIO-MYST-100 · 5 tests each card shows its header, title, body and footer
- The grid shows its cards
Path 2: Tabs
- A document holds a tab set with tab itemsSwRS-MDOKFSTUDIO-MYST-098 · 4 tests the page renders a tab bar with the tab-item titles and shows the panel of the selected tab
- The tab bar shows the selected panelSwRS-MDOKFSTUDIO-MYST-099 the arrow, Home and End keys select a tab and move the focus to itSwRS-MDOKFSTUDIO-MYST-099 · 4 tests a click on a tab selects it and shows only its panel
- The panel of the clicked tab 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