Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-TOOLBAR-137

The exported page shows the content without comments or editing controls

When the extension writes the exported file, it SHALL write the content as the reader sees it with every section unfolded, tabs that switch and dropdowns that open without JavaScript, and SHALL leave out review comments, comment marks and editing controls.

Step 3 of path 1 in StRS-MDOKFSTUDIO-TOOLBAR-014: from “The styles, the theme and the images are embedded” to “The HTML file is written”.

Scenarios 3

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

nominalThe content without chrome
Givena page with a review comment, a TODO comment chip and the editing controls of edit mode
Whenthe page is exported
Thenthe file has no `[data-okf-comment-kind]` element, no comment text and no `button`
nominalTabs and dropdowns work with no script
Givena page with a tab set of two tabs and a dropdown
Whenthe file is opened with JavaScript off and a click lands on the label of the second tab, then on the dropdown summary
Thenthe second panel replaces the first, the dropdown opens, and a tab set that showed its second tab when exported opens on it
boundarySections and checkboxes
InputOutcome
A folded sectionIt is written unfolded
A task checkboxIt is shown as checked or not as in the preview, and cannot be changed
The diagrams are still drawingThe page waits up to 10 seconds, then exports what it shows (a diagram in error or unavailable does not hold the export)
A block, a table cell or a front matter key or value is being editedIt is written as last rendered (the text autosaved so far, about 400 ms behind the typing); the editor stays open, is not in the file, and the export saves nothing

Implemented in 4

Tested by 5