Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-TABLE-122: A table converts between pipe, list-table and HTML forms without loss, or is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-1229 teststhe writer runs Listtable and the table isreplaced by a list-tablein one editSwRS-MDOKFSTUDIO-TABLE-122: A table converts between pipe, list-table and HTML forms without loss, or is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-1229 teststhe writer runs Pipe table and thelist-table is replaced by a pipetable in one editSwRS-MDOKFSTUDIO-TABLE-122: A table converts between pipe, list-table and HTML forms without loss, or is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-1229 teststhe writer presses List table inthe table bar and the table, withthe text typed in the currentcell, is converted in one finalsaveSwRS-MDOKFSTUDIO-TABLE-122: A table converts between pipe, list-table and HTML forms without loss, or is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-1229 testsa conversion thatwould lose content, ora table already in thetarget form, isrefused with a reasonSwRS-MDOKFSTUDIO-TABLE-122: A table converts between pipe, list-table and HTML forms without loss, or is refused with a reasonSwRS-MDOKFSTUDIO-TABLE-1229 testsescaped pipes are kept across formsSwRS-MDOKFSTUDIO-TABLE-094: Editing one cell changes exactly one line of the sourceSwRS-MDOKFSTUDIO-TABLE-0944 testsan unchanged table gives back the original textThe caret is on a pipe table in MyST modeThe caret is on a pipetable in MyST modeThe table is written as a list-table (paths 1, 2)The table is written asa list-tableThe table is a pipe table againThe table is a pipetable againA cell editor is open in a pipe tableA cell editor is open ina pipe 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.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TABLE-094Editing one cell changes exactly one line of the source 4 testsSwRS-MDOKFSTUDIO-TABLE-122A table converts between pipe, list-table and HTML forms without loss, or is refused with a reason 9 tests