Use case StRS-MDOKFSTUDIO-MYST-017
Figures and tables show as the source sizes and shapes them
As a writer, I want figures sized and aligned and every table form shown as a table, without building, so that I can judge the layout of 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 figure path 2: A table other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: A figure
- A document holds a figure directiveSwRS-MDOKFSTUDIO-MYST-031 an invalid width is droppedSwRS-MDOKFSTUDIO-MYST-031 · 5 tests the page renders the image with its alt text, caption and id
- The figure is shown with its width and alignment
Path 2: A table
- A document holds a list-table, csv-table or table directiveSwRS-MDOKFSTUDIO-MYST-063 invalid list-table widths are ignoredSwRS-MDOKFSTUDIO-MYST-063 · 3 tests the page renders an ordinary table with the table styles
- A document holds a raw HTML tableSwRS-MDOKFSTUDIO-GFM-031 active content and unsafe styles are removedSwRS-MDOKFSTUDIO-GFM-031 · 2 tests the page rebuilds it from an allow-list, with its spans
- The tables are shown as tables
This map has 8 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 21 scenarios.