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
Path 1: Edit one cell
- A pipe table is shown in edit modeSwRS-MDOKFSTUDIO-TABLE-001 with edit mode off no editor opensSwRS-MDOKFSTUDIO-TABLE-001 · 8 tests the writer clicks a body cell and an editor named Markdown table cell editor opens in the cell with its raw Markdown
- The cell editor is openSwRS-MDOKFSTUDIO-TABLE-034 a host refusal is shown in the cell and the typed text staysSwRS-MDOKFSTUDIO-TABLE-119 an outside undo, redo or revert over the table closes the editor without savingSwRS-MDOKFSTUDIO-TABLE-013 · 1 test the writer types and each change is remembered in the table model, so the autosave carries the whole table
- The typed text is in the table modelSwRS-MDOKFSTUDIO-TABLE-018 an unchanged cell closes without a saveSwRS-MDOKFSTUDIO-TABLE-025 Escape closes the editor and drops the text typed in that cellSwRS-MDOKFSTUDIO-TABLE-018 · 5 tests the writer presses Enter or Done, or leaves the cell, and the cell is committed
- The cell is committed and the editor is closed
Path 2: Edit a cell of a quoted table
- A pipe table inside a blockquote, a GFM alert or a MyST admonition is shown in edit modeSwRS-MDOKFSTUDIO-TABLE-121 · 6 tests the writer clicks a cell and the cell editor opens, the prefix of the table kept
- The cell editor is open
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