Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TABLE-001

A writer edits a table cell in place and never loses the text

As a writer, I click a table cell in edit mode and edit its Markdown right where it is, without the table moving or the other columns changing width; I move between cells without losing a change; I finish a cell with Enter, with Done or by clicking elsewhere; I press Escape or Cancel and the cell goes back to what it was; I follow a link, press Back or switch tab and my text is in the document; and I am told why when a cell could not be opened or saved.

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: Edit one cell path 2: Edit a cell of a quoted table other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TABLE-001: A click on a pipe table cell opens a cell editor in placeSwRS-MDOKFSTUDIO-TABLE-0018 teststhe writer clicks a bodycell and an editor namedMarkdown table celleditor opens in the cellwith its raw MarkdownSwRS-MDOKFSTUDIO-TABLE-013: A cell edit saves the whole table and moves between cells without reopeningSwRS-MDOKFSTUDIO-TABLE-0131 testthe writer types and each changeis remembered in the table model,so the autosave carries the wholetableSwRS-MDOKFSTUDIO-TABLE-018: Enter, Done, leaving the cell or a click elsewhere commits the cellSwRS-MDOKFSTUDIO-TABLE-0185 teststhe writer presses Enter or Done,or leaves the cell, and the cellis committedSwRS-MDOKFSTUDIO-TABLE-121: A pipe table inside a quote or an admonition is edited cell by cell, its container prefix keptSwRS-MDOKFSTUDIO-TABLE-1216 teststhe writer clicks a cell and thecell editor opens, the prefix ofthe table keptSwRS-MDOKFSTUDIO-TABLE-001: A click on a pipe table cell opens a cell editor in placeSwRS-MDOKFSTUDIO-TABLE-0018 testswith edit mode off noeditor opensSwRS-MDOKFSTUDIO-TABLE-034: A host refusal is shown in the cell and keeps the typed textSwRS-MDOKFSTUDIO-TABLE-0342 testsa host refusal is shown inthe cell and the typed textstaysSwRS-MDOKFSTUDIO-TABLE-119: An outside change of the table under an open cell editor closes the editor and shows the bufferSwRS-MDOKFSTUDIO-TABLE-1195 testsan outside undo, redo orrevert over the table closesthe editor without savingSwRS-MDOKFSTUDIO-TABLE-018: Enter, Done, leaving the cell or a click elsewhere commits the cellSwRS-MDOKFSTUDIO-TABLE-0185 testsan unchanged cell closes without a saveSwRS-MDOKFSTUDIO-TABLE-025: Escape cancels the open cell edit only, except during a compositionSwRS-MDOKFSTUDIO-TABLE-0258 testsEscape closes the editor and drops the text typed in thatcellA pipe table is shown in edit modeA pipe table is shown inedit modeThe cell editor is open (paths 1, 2)The cell editor is openThe typed text is in the table modelThe typed text is in thetable modelThe cell is committed and the editor is closedThe cell is committedand the editor is closedA pipe table inside a blockquote, a GFM alert or a MyST admonition is shown in edit modeA pipe table inside ablockquote, a GFM alertor a MyST admonition isshown in edit mode

This map has 1,424 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 7 behaviours on the map are tested one by one, with 51 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-205Open editors are saved before the page hides or leaves the document not on the map7 testsSwRS-MDOKFSTUDIO-BLOCK-228Opening, saving and closing an editor keep the reading position not on the map6 testsSwRS-MDOKFSTUDIO-BLOCK-255A block editor that opens late leaves the focus in a field that took it not on the map3 testsSwRS-MDOKFSTUDIO-TABLE-001A click on a pipe table cell opens a cell editor in place 8 testsSwRS-MDOKFSTUDIO-TABLE-006The cell text box wraps and fits its text in the block editor font not on the map7 testsSwRS-MDOKFSTUDIO-TABLE-013A cell edit saves the whole table and moves between cells without reopening 1 testSwRS-MDOKFSTUDIO-TABLE-018Enter, Done, leaving the cell or a click elsewhere commits the cell 5 testsSwRS-MDOKFSTUDIO-TABLE-025Escape cancels the open cell edit only, except during a composition 8 testsSwRS-MDOKFSTUDIO-TABLE-034A host refusal is shown in the cell and keeps the typed text 2 testsSwRS-MDOKFSTUDIO-TABLE-119An outside change of the table under an open cell editor closes the editor and shows the buffer 5 testsSwRS-MDOKFSTUDIO-TABLE-120A spreadsheet paste into a table cell fills the cells from that cell not on the map5 testsSwRS-MDOKFSTUDIO-TABLE-121A pipe table inside a quote or an admonition is edited cell by cell, its container prefix kept 6 tests
SwRS-MDOKFSTUDIO-TABLE-026Cancelling after an autosave asks the host to restore the original table deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TABLE-027The Cancel button does what Escape does deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TABLE-030Following a link or pressing Back or Next saves an open cell first deprecated deprecated Markdown file