Behaviour SwRS-MDOKFSTUDIO-LIFE-156
The settings editor lists the Studio settings in titled groups
The extension SHALL contribute exactly the settings of its settings registry, with their schema text and defaults generated into package.json, in the groups Preview, Editing, Frontmatter, Comments and PlantUML in that order, each setting with a unique order and a markdownDescription of at most 700 characters, reading a setting with nothing stored, and an absent or wrongly typed boot entry of the page, as its default.
Step 1 of path 1 in StRS-MDOKFSTUDIO-LIFE-021: from “The reader opens the settings editor” to “The Studio settings are listed in their groups”.
Scenarios 5
The situations the tests check; open one to read it.
nominalGroup order and key prefix
Giventhe package manifest
Whenthe configuration is read
Thenthe groups are Preview 1, Editing 2, Frontmatter 3, Comments 4 and PlantUML 5, and no group Opening Files nor any setting whose key starts with markdownOkfSchemaStudio.open.
a setting named markdownOkfSchemaStudio.comments.authorName sits in the Comments group, because every setting is in the group of its key prefix
a setting named markdownOkfSchemaStudio.comments.authorName sits in the Comments group, because every setting is in the group of its key prefix
nominalDescriptions, order and sorting
Giventhe package manifest
Wheneach setting is read
Thenit has a non-empty markdownDescription and an order no other setting has
the settings of one group are listed following their order values
the settings of one group are listed following their order values
boundaryDescription limit
| Setting description | Outcome |
|---|---|
| A markdownDescription of at most 700 characters and no description key | Accepted |
| A markdownDescription of 701 characters | The contract test fails |
refusalGenerated schema
| Registry and package.json | Outcome |
|---|---|
| In sync | The generated schema equals the contributed one byte for byte |
| A setting edited by hand in package.json | The check fails, because the schema differs from the generated one |
nominalSetting read
| Stored value | Outcome |
|---|---|
| No value for scrollPreviewWithEditor | The value is true, the schema default |
| A stored value for the same setting | The stored value is read, normalized by the setting's own rule |