Behaviour SwRS-MDOKFSTUDIO-BLOCK-148
A block selection survives saves and is cleared by patches
When the page applies a content patch, it SHALL clear the block selection unless a selection is waiting for the patch of a save, and it applies a waiting selection by position only if the number of body blocks is the one it was read at, while the properties table is never part of a block selection.
Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-BLOCK-016, in the state “A run of blocks is selected”.
Scenarios 5
The situations the tests check; open one to read it.
nominalA content patch clears the selection
Givena block selection and a patch from the host
Whenthe patch is applied
Thenthe selection is cleared and the outline is gone
nominalA selection waits for the save of the open editor
Givenan open block editor with typed text, and a selection requested while the editor was saved (the writer Shift+clicks another block)
Whenthe final save is posted and then the patch of that save arrives
Thenthe waiting selection is applied instead of being cleared, and the blocks are selected only once the patch is in
boundaryA waiting selection is named by position
| Input | Outcome |
|---|---|
| The save adds lines but no block | The same blocks by position are selected |
| The save adds or removes a block | Nothing is selected instead of another block |
refusalA waiting selection is dropped without its patch
| Input | Outcome |
|---|---|
| The editor that the Shift+click waits for closes by Cancel or Escape | The waiting selection is dropped and nothing is selected later |
| The editor closes by its patch | The waiting selection is applied |
| Shift+click while a field editor of the properties table is open | Nothing is selected |
refusalThe properties table is never selected
| Input | Outcome |
|---|---|
| Shift+click on the properties table of a document with frontmatter, in edit mode | Nothing is selected, the table gets no selected mark and the selection stays unchanged |
| Shift+ArrowUp with the first body block focused (extension from the first body block) | The properties table is not added and the selection stops at the first body block |
Implemented in 3
Tested by 1
Replaces
SwRS-MDOKFSTUDIO-FMEDIT-063The properties table is never part of a block selection or move superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-148 Markdown file