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
Path 1: Insert a table and shape it
- A block text box is open in edit modeSwRS-MDOKFSTUDIO-TABLE-106 a missing, malformed or out-of-range sizeSwRS-MDOKFSTUDIO-TABLE-106 · 3 tests the writer runs Table with a size of R x C and a pipe table is inserted after the end of the selection
- A pipe table is in the textSwRS-MDOKFSTUDIO-TABLE-115 Table with caption wraps the pipe table in a table directiveSwRS-MDOKFSTUDIO-TABLE-117 HTML table replaces the pipe table with an HTML tableSwRS-MDOKFSTUDIO-TABLE-111 · 5 tests the writer runs Column alignment and only the delimiter cell of the caret's column is rewritten
- The 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