Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TABLE-016

A writer inserts and shapes a table from the palette

As a writer, I insert a table of the size I want, align a column, give the table a caption or turn it into an HTML table without typing the Markdown by hand.

Use case diagram

How it is split

This use case (StRS) is reached by one path (the 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: Insert a table and shape it other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TABLE-106: The Table action inserts a pipe table of the chosen size on its own linesSwRS-MDOKFSTUDIO-TABLE-1063 teststhe writer runs Table with a sizeof R x C and a pipe table isinserted after the end of theselectionSwRS-MDOKFSTUDIO-TABLE-111: Column alignment sets the colons of the caret's columnSwRS-MDOKFSTUDIO-TABLE-1115 teststhe writer runs Column alignmentand only the delimiter cell of thecaret's column is rewrittenSwRS-MDOKFSTUDIO-TABLE-106: The Table action inserts a pipe table of the chosen size on its own linesSwRS-MDOKFSTUDIO-TABLE-1063 testsa missing, malformed orout-of-range sizeSwRS-MDOKFSTUDIO-TABLE-115: Table with caption wraps the table at the caret in a table directiveSwRS-MDOKFSTUDIO-TABLE-1152 testsTable with caption wraps the pipe table in a table directiveSwRS-MDOKFSTUDIO-TABLE-117: HTML table converts or inserts an HTML tableSwRS-MDOKFSTUDIO-TABLE-1174 testsHTML table replaces the pipe table with an HTML tableA block text box is open in edit modeA block text box is openin edit modeA pipe table is in the textA pipe table is in thetextThe column is alignedThe column is aligned

This map has 99 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 27 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-PALETTE-031Palette popovers open in the frame, one at a time, and Escape or typing closes them not on the map6 testsSwRS-MDOKFSTUDIO-TABLE-106The Table action inserts a pipe table of the chosen size on its own lines 3 testsSwRS-MDOKFSTUDIO-TABLE-111Column alignment sets the colons of the caret's column 5 testsSwRS-MDOKFSTUDIO-TABLE-115Table with caption wraps the table at the caret in a table directive 2 testsSwRS-MDOKFSTUDIO-TABLE-117HTML table converts or inserts an HTML table 4 tests