Behaviour SwRS-MDOKFSTUDIO-BLOCK-270
Every final save of a block or cell editor ends
When a writer finishes a block or cell editor, the page and the host SHALL end every final save with a closed editor or an error that gives the typed text back, and never leave the editor on its saving state.
Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-BLOCK-006, in the state “The typed text is in the document”.
Scenarios 3
The situations the tests check; open one to read it.
nominalA final save ends in a closed editor
Givena block or cell editor whose final save is posted
Whenthe host answers, whether the text was written, unchanged, or no render follows
Thenthe editor closes, or its detached save ends with done, and no editor stays on the saving status
refusalA failed final save gives the text back
Givena final save the host refuses, cannot write, finds changed in the document or meets a change of the file
Whenthe answer arrives
Thenit carries the writer's text, and the page shows it in the open editor or in a reopened one with the reason, or the host offers it to copy
boundaryEvery save path ends
| Input | Outcome |
|---|---|
| A frontmatter save whose plan changes no text | The host answers unchanged and the field editor closes |
| Cancel or Escape in a block or cell editor during its final save | The editor closes and the save ends with an answer |
| A page that cannot reopen the editor | The host releases the edit and offers the text to copy |