Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-MYST-009

A writer sees, links and renames labels safely

As a writer, I want to see where each cross-reference points, reuse each label and rename it safely, so that cross-references are easy and references do not silently break.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.

path 1: Reference a label path 2: Rename a label, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-MYST-036: Labels show an anchor icon on the next blockSwRS-MDOKFSTUDIO-MYST-0362 teststhe page shows a faintanchor icon on the nextparagraph or heading,without moving the textSwRS-MDOKFSTUDIO-MYST-019: Reference roles link to in-page targetsSwRS-MDOKFSTUDIO-MYST-0192 testsa {ref} to the label renders anin-page link showing the targettext or the given textSwRS-MDOKFSTUDIO-MYST-038: The anchor icon opens a rename field that sends valid namesSwRS-MDOKFSTUDIO-MYST-0389 testsin edit mode a click on the iconopens a Rename label popover withthe name selectedSwRS-MDOKFSTUDIO-MYST-045: The host renames only the label text in one undo stepSwRS-MDOKFSTUDIO-MYST-0455 teststhe page posts the rename with asource line, two valid names andthe current render, and the hostanswers with the same edit idSwRS-MDOKFSTUDIO-MYST-045: The host renames only the label text in one undo stepSwRS-MDOKFSTUDIO-MYST-0455 teststhe host changes only the (old)=text of the stated line, as oneundo stepSwRS-MDOKFSTUDIO-MYST-036: Labels show an anchor icon on the next blockSwRS-MDOKFSTUDIO-MYST-0362 testsa label beforeanother block or atthe endSwRS-MDOKFSTUDIO-MYST-019: Reference roles link to in-page targetsSwRS-MDOKFSTUDIO-MYST-0192 testsexplicit text and paragraph labelsSwRS-MDOKFSTUDIO-MYST-038: The anchor icon opens a rename field that sends valid namesSwRS-MDOKFSTUDIO-MYST-0389 testsan invalid name is not sentSwRS-MDOKFSTUDIO-BLOCK-041: One edit at a time: an open editor blocks other edits, opens and refreshesSwRS-MDOKFSTUDIO-BLOCK-04116 testsan open block editor makes the label rename refused with itsreasonSwRS-MDOKFSTUDIO-MYST-045: The host renames only the label text in one undo stepSwRS-MDOKFSTUDIO-MYST-0455 testsa malformed or stalemessageSwRS-MDOKFSTUDIO-MYST-045: The host renames only the label text in one undo stepSwRS-MDOKFSTUDIO-MYST-0455 testsa line that is no longer (old)= changes nothingA document holds a `(name)=` labelA document holds a(name)= labelThe label shows an anchor icon (paths 1, 2)The label shows ananchor icon2The reference is an in-page linkThe reference is anin-page linkThe Rename label popover is openThe Rename label popoveris openThe host holds a valid renameThe host holds a validrenameThe label has its new name in the sourceThe label has its newname in the source

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

Behaviours of this use case

SwRS-MDOKFSTUDIO-MYST-019Reference roles link to in-page targets 2 testsSwRS-MDOKFSTUDIO-MYST-036Labels show an anchor icon on the next block 2 testsSwRS-MDOKFSTUDIO-MYST-038The anchor icon opens a rename field that sends valid names 9 testsSwRS-MDOKFSTUDIO-MYST-045The host renames only the label text in one undo step 5 tests
SwRS-MDOKFSTUDIO-MYST-037The anchor icon is not a mapped block and carries its source line superseded superseded by SwRS-MDOKFSTUDIO-MYST-036 Markdown file
SwRS-MDOKFSTUDIO-MYST-039Enter sends the label rename and an unchanged name sends nothing superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-040Escape or an outside press closes the rename field superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-041Invalid label names are not sent superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-042The host refuses a rename in an untrusted or read-only preview superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file
SwRS-MDOKFSTUDIO-MYST-043The host refuses a rename while an edit is open superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-041 Markdown file
SwRS-MDOKFSTUDIO-MYST-044The host refuses a rename for an out-of-date preview superseded superseded by SwRS-MDOKFSTUDIO-TRUST-065 Markdown file
SwRS-MDOKFSTUDIO-MYST-046A valid rename edits only the label text as one undo step superseded superseded by SwRS-MDOKFSTUDIO-MYST-045 Markdown file
SwRS-MDOKFSTUDIO-MYST-047A successful rename reports the remaining uses superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-048The rename field shows progress and refusals superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-049The rename field times out after 6 seconds superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-050Rename is blocked while an editor is open in the page superseded superseded by SwRS-MDOKFSTUDIO-BLOCK-041 Markdown file
SwRS-MDOKFSTUDIO-MYST-051The label rename message is validated and answered superseded superseded by SwRS-MDOKFSTUDIO-MYST-045 Markdown file
SwRS-MDOKFSTUDIO-MYST-090The rename field closes itself after 5 seconds superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file
SwRS-MDOKFSTUDIO-MYST-094A label starting with underscore, dot or hyphen cannot be renamed superseded superseded by SwRS-MDOKFSTUDIO-MYST-038 Markdown file