Behaviour SwRS-MDOKFSTUDIO-TABLE-013
A cell edit saves the whole table and moves between cells without reopening
When the writer types in a cell text box and then moves the editor to another cell of the table, the extension SHALL keep every change made in any cell, so that the autosave carries the whole serialised table and not only the edited cell, and keep the same edit session, so that moving between cells does not reopen the editor and the whole session is one undo step.
Step 2 of path 1 in StRS-MDOKFSTUDIO-TABLE-001: from “The cell editor is open” to “The typed text is in the table model”.
Scenarios 8
The situations the tests check; open one to read it.
nominalTyping in one cell
Givena two-column table with two body rows and the editor in the first body cell
Whenthe writer types a new text and the autosave fires
Thenone non-final previewEditSave is posted whose editedText is the whole table with the new text in that cell and every other cell unchanged
nominalTwo cells edited
Giventext typed in one cell, then the editor moved to another cell where text is typed too
Whenthe autosave of the second cell fires
TheneditedText holds both changes
nominalSwitch to a neighbouring cell
Givena cell editor open on the first body cell of a two-column table
Whenthe writer clicks the other body cell of the same row
Thenthe editor sits in the new cell with its raw Markdown, no previewEditOpen was posted for the click, and later saves carry the same editId
boundaryCell missing from the model
Givena rendered cell whose position has no cell in the parsed table model
Whenthe writer clicks it
Thenthe editor stays where it was
nominalSwitch right after typing
Giventext typed in a cell less than 400 ms ago
Whenthe writer clicks another cell
Thena non-final previewEditSave with the typed text is posted immediately and the autosave timer is cleared
boundarySwitch with nothing typed
Givena cell editor open with no change since the last post
Whenthe writer clicks another cell
Thenno previewEditSave is posted
nominalThe cell the editor leaves shows its rendered content again
Giventhe editor on cell A and the writer clicks cell B
Whenthe move is done
Thencell A has no selected mark and shows its original rendered content, and cell B carries the mark and hides its content
boundaryEditor closed
Giventhe editor on cell B closed by Escape
Whenthe page is inspected
Thenno cell carries the selected mark