Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-MYST-031: Figures render with image, caption, label, width and alignmentSwRS-MDOKFSTUDIO-MYST-0315 teststhe page renders the image withits alt text, caption and idSwRS-MDOKFSTUDIO-MYST-063: Table directives render as ordinary tablesSwRS-MDOKFSTUDIO-MYST-0633 teststhe page renders an ordinary tablewith the table stylesSwRS-MDOKFSTUDIO-GFM-031: Raw HTML tables are rebuilt from an allow-listSwRS-MDOKFSTUDIO-GFM-0312 teststhe page rebuilds it from anallow-list, with its spansSwRS-MDOKFSTUDIO-MYST-031: Figures render with image, caption, label, width and alignmentSwRS-MDOKFSTUDIO-MYST-0315 testsan invalid width is droppedSwRS-MDOKFSTUDIO-MYST-063: Table directives render as ordinary tablesSwRS-MDOKFSTUDIO-MYST-0633 testsinvalid list-table widthsare ignoredSwRS-MDOKFSTUDIO-GFM-031: Raw HTML tables are rebuilt from an allow-listSwRS-MDOKFSTUDIO-GFM-0312 testsactive content and unsafe styles are removedA document holds a figure directiveA document holds afigure directiveThe figure is shown with its width and alignmentThe figure is shown withits width and alignmentA document holds a list-table, csv-table or table directiveA document holds alist-table, csv-table ortable directiveA document holds a raw HTML tableA document holds a rawHTML tableThe tables are shown as tablesThe tables are shown astables

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.

Behaviours of this use case

SwRS-MDOKFSTUDIO-GFM-031Raw HTML tables are rebuilt from an allow-list 2 testsSwRS-MDOKFSTUDIO-MYST-031Figures render with image, caption, label, width and alignment 5 testsSwRS-MDOKFSTUDIO-MYST-063Table directives render as ordinary tables 3 tests