Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-FMEDIT-001

A writer edits metadata values in place with fitting controls

As a writer, I edit a document's metadata directly in the properties table, where I read it, one field at a time, without leaving the preview or fighting other editors; I enter valid values with a control suited to the field type, without knowing YAML, including list items one by one, and I know whether my edit was saved, refused or cancelled and can undo it.

Use case diagram

How it is split

This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.

path 1: Edit a field in place other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-FMEDIT-001: A click on a field in edit mode opens its editor in placeSwRS-MDOKFSTUDIO-FMEDIT-0016 testsa click on a name or value cellopens a field editor inside thatcellSwRS-MDOKFSTUDIO-FMEDIT-004: Text values are edited as one or several linesSwRS-MDOKFSTUDIO-FMEDIT-0042 testsEnter saves a one-line text valueSwRS-MDOKFSTUDIO-BLOCK-228: Opening, saving and closing an editor keep the reading positionSwRS-MDOKFSTUDIO-BLOCK-2286 teststhe final save keeps theproperties table at its screenpositionSwRS-MDOKFSTUDIO-FMEDIT-001: A click on a field in edit mode opens its editor in placeSwRS-MDOKFSTUDIO-FMEDIT-0016 testsreading mode opens no editorSwRS-MDOKFSTUDIO-FMEDIT-003: Enum, number, date, boolean and nullable fields use fitting controlsSwRS-MDOKFSTUDIO-FMEDIT-0035 testsa boolean field toggles with one clickSwRS-MDOKFSTUDIO-FMEDIT-019: A field editor saves a changed value and Escape cancels itSwRS-MDOKFSTUDIO-FMEDIT-01910 testsEscape cancels the editorSwRS-MDOKFSTUDIO-FMEDIT-016: The host refuses a value that breaks YAML, the field type or the schema, and ignores a malformed save messageSwRS-MDOKFSTUDIO-FMEDIT-0163 testsa YAML value that does not parse is refusedThe properties table is shown in edit modeThe properties table isshown in edit modeA field editor is openA field editor is openThe new value is savedThe new value is savedThe table shows the new value where it wasThe table shows the newvalue where it was

This map has 604 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 6 behaviours on the map are tested one by one, with 55 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-BLOCK-228Opening, saving and closing an editor keep the reading position 6 testsSwRS-MDOKFSTUDIO-FMEDIT-001A click on a field in edit mode opens its editor in place 6 testsSwRS-MDOKFSTUDIO-FMEDIT-003Enum, number, date, boolean and nullable fields use fitting controls 5 testsSwRS-MDOKFSTUDIO-FMEDIT-004Text values are edited as one or several lines 2 testsSwRS-MDOKFSTUDIO-FMEDIT-010List fields and link lists are edited item by item not on the map6 testsSwRS-MDOKFSTUDIO-FMEDIT-016The host refuses a value that breaks YAML, the field type or the schema, and ignores a malformed save message 3 testsSwRS-MDOKFSTUDIO-FMEDIT-019A field editor saves a changed value and Escape cancels it 10 tests
SwRS-MDOKFSTUDIO-FMEDIT-002A field editor does not open while another editor is open superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-041 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-005Trailing line breaks of a text value are dropped superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-004 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-006A multi-line text value is written as a literal block superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-004 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-007Number, date and time fields use native inputs superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-008An invalid number is refused in the editor superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-009A boolean field toggles with one click superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-011Enter in a list item inserts an empty item after it superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-010 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-012List items reorder by keyboard and drag superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-010 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-013A plain click on a link value edits the field superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-014Link lists suggest the known Markdown file stems superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-010 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-015Fields without a schema type are edited as YAML text superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-004 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-017Nullable fields offer Set to null superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-018A null value is refused for a field that is not nullable superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-016 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-020Escape cancels a field editor superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-021Turning edit mode off closes a field editor without saving superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-022A save in flight disables the editor and shows Saving superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-023A refused field save stays visible in the editor superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-050Editor controls do not apply the schema hints superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-055Each frontmatter save is one document edit superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-058 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-056Undo and redo keys in a field editor act on the field text superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-057The properties section keeps its place across the save superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-228 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-065A field editor opens and closes on Escape in a 460 px preview without page overflow superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-066Field and key editors have no palette or slash menu superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-074A chosen enum value is posted when the select loses focus or Enter is pressed superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-003 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-075Shift+Enter adds a line in a text field without saving superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-004 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-076In a multi-line text value Enter adds a line and Cmd or Ctrl+Enter saves superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-004 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-077Backspace in an empty list item removes it superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-010 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-078Cmd or Ctrl+Enter in a list item saves the list superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-010 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-079A null value is refused when a conditional rule forbids it superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-016 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-081A chosen enum value is posted when the select loses focus or Enter is pressed deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-082An accepted field save shows that the preview is refreshing superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-019 Markdown file
SwRS-MDOKFSTUDIO-FMEDIT-087A tall properties table scrolls to both ends at 460 px and returns to line 1 on source sync superseded superseded by SwRS-MDOKFSTUDIO-FMEDIT-001 Markdown file