Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-008

Blocks in a folded section cannot be edited

While a section is folded, the extension SHALL leave the blocks of that section out of the block selection and out of the editable blocks, so that no block inside it can be selected or edited until the section is unfolded.

Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-TOOLBAR-002, in the state “A section is folded”.

Scenarios 2

The situations the tests check; open one to read it.

nominalA folded block cannot be selected or edited
Givena folded section with two paragraphs
Whenthe page lists the blocks the keyboard selection and the editors can reach
Thenthe two paragraphs are not listed and no block is found at their line, so no selection or editor can open on them; after the section is unfolded they are listed again
boundaryThe block stays mapped
Giventhe same folded section
Whenthe editor and the preview scroll together
Thenthe folded blocks stay in the top-level mapped blocks used for the scroll mapping, so the source lines still line up

Implemented in 1

Tested by 1