Use case StRS-MDOKFSTUDIO-TABLE-013
A writer converts a table between pipe, list-table and HTML forms
As a writer, I convert a table between a Markdown pipe table, a MyST list-table and a simple HTML table, and I am told when a conversion is refused instead of silently losing content.
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. Where paths meet, they share the circle or the step.
path 1: Convert a table to a list-table and back path 2: Convert the table being edited other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Convert a table to a list-table and back
- The caret is on a pipe table in MyST modeSwRS-MDOKFSTUDIO-TABLE-122 a conversion that would lose content, or a table already in the target form, is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-122 · 9 tests the writer runs List table and the table is replaced by a list-table in one edit
- The table is written as a list-tableSwRS-MDOKFSTUDIO-TABLE-122 escaped pipes are kept across formsSwRS-MDOKFSTUDIO-TABLE-122 · 9 tests the writer runs Pipe table and the list-table is replaced by a pipe table in one edit
- The table is a pipe table again
Path 2: Convert the table being edited
- A cell editor is open in a pipe tableSwRS-MDOKFSTUDIO-TABLE-094 an unchanged table gives back the original textSwRS-MDOKFSTUDIO-TABLE-122 · 9 tests the writer presses List table in the table bar and the table, with the text typed in the current cell, is converted in one final save
- The table is written as a list-table
This map has 846 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 39 scenarios.