Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-REVIEW-017

A writer sees which blocks changed since the last commit

As a writer, I see at a glance what I changed since the last commit, unsaved edits included, and I read the document without the bars when I do not need them.

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: See what changed since the last commit other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-REVIEW-195: The host posts the lines that differ from the last commit, read from Git for small filesSwRS-MDOKFSTUDIO-REVIEW-1954 teststhe host posts the line rangesthat differ from the file at HEADSwRS-MDOKFSTUDIO-REVIEW-207: Changed blocks get a thin change bar that moves nothing, and malformed ranges are ignoredSwRS-MDOKFSTUDIO-REVIEW-2075 teststhe innermost mapped blocks thatmeet a range get a thin greenchange bar that moves nothingSwRS-MDOKFSTUDIO-REVIEW-214: The Diff button and the showIncomingChanges setting hide the change barsSwRS-MDOKFSTUDIO-REVIEW-2142 teststhe reader presses the Diff buttonand the bars are hiddenSwRS-MDOKFSTUDIO-REVIEW-195: The host posts the lines that differ from the last commit, read from Git for small filesSwRS-MDOKFSTUDIO-REVIEW-1954 testsan untracked file gets nomarksSwRS-MDOKFSTUDIO-REVIEW-207: Changed blocks get a thin change bar that moves nothing, and malformed ranges are ignoredSwRS-MDOKFSTUDIO-REVIEW-2075 testsa malformed range is ignoredSwRS-MDOKFSTUDIO-REVIEW-215: Changed or added front matter fields get their own change barSwRS-MDOKFSTUDIO-REVIEW-2154 testsa changed or added frontmatter field gets its ownchange barSwRS-MDOKFSTUDIO-REVIEW-220: A change bar shows the changed lines in a tooltip while the pointer is over itSwRS-MDOKFSTUDIO-REVIEW-2203 teststhe pointer over a bar shows the changed lines of its blockin a tooltipSwRS-MDOKFSTUDIO-REVIEW-221: A span of removed lines gets a red marker with a tooltip between the blocks around itSwRS-MDOKFSTUDIO-REVIEW-2214 testsremoved lines with nothing in their place get a red markerbetween the blocks around them, with a Removed lines tooltipSwRS-MDOKFSTUDIO-REVIEW-222: A click on a change bar or removed-lines marker opens the side-by-side diff of that block onlySwRS-MDOKFSTUDIO-REVIEW-2225 testsa click on a bar or marker shows the side-by-side diff ofthat block only, a second click or Escape closes itA file tracked by Git differs from its last commitA file tracked by Gitdiffers from its lastcommitThe page holds the changed line rangesThe page holds thechanged line rangesChanged blocks carry a green barChanged blocks carry agreen barThe change bars are hiddenThe change bars arehidden

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

Behaviours of this use case

SwRS-MDOKFSTUDIO-REVIEW-195The host posts the lines that differ from the last commit, read from Git for small files 4 testsSwRS-MDOKFSTUDIO-REVIEW-207Changed blocks get a thin change bar that moves nothing, and malformed ranges are ignored 5 testsSwRS-MDOKFSTUDIO-REVIEW-214The Diff button and the showIncomingChanges setting hide the change bars 2 testsSwRS-MDOKFSTUDIO-REVIEW-215Changed or added front matter fields get their own change bar 4 testsSwRS-MDOKFSTUDIO-REVIEW-220A change bar shows the changed lines in a tooltip while the pointer is over it 3 testsSwRS-MDOKFSTUDIO-REVIEW-221A span of removed lines gets a red marker with a tooltip between the blocks around it 4 testsSwRS-MDOKFSTUDIO-REVIEW-222A click on a change bar or removed-lines marker opens the side-by-side diff of that block only 5 tests
SwRS-MDOKFSTUDIO-REVIEW-005The word diff reports the added and removed words superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-007The side-by-side messages are validated and gated superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-006, SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-010The line diff reports hunks with both sides superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-009 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-200The line diff reports added and modified lines superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-195 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-203The HEAD text comes from the built-in Git extension for small files superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-195 Markdown file
SwRS-MDOKFSTUDIO-REVIEW-208Malformed incoming-change ranges are ignored superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-207 Markdown file