Use case StRS-MDOKFSTUDIO-REVIEW-018
A writer compares each changed block with its last-commit version side by side
As a writer, I read what I changed in a block next to what the block said at the last commit, word by word, unsaved edits included, and I go back to the plain document when I do not need the comparison.
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: Compare a changed block with its last-commit version other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Compare a changed block with its last-commit version
- A file tracked by Git differs from its last commitSwRS-MDOKFSTUDIO-REVIEW-008 the button is disabled in edit modeSwRS-MDOKFSTUDIO-REVIEW-008 · 5 tests the writer presses the Side-by-side button and the page tells the host that the diff is on
- The host is told the diff is onSwRS-MDOKFSTUDIO-REVIEW-006 an untracked file has an empty baselineSwRS-MDOKFSTUDIO-REVIEW-006 · 3 tests the host renders the last-commit text and posts it with the hunks
- The page holds the baselineSwRS-MDOKFSTUDIO-REVIEW-009 · 9 tests each changed block becomes a card, last commit left and current right, with word marks
- Changed blocks show as cardsSwRS-MDOKFSTUDIO-REVIEW-008 · 5 tests pressing the button again turns the diff off
- The original blocks are back
This map has 205 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 3 behaviours on the map are tested one by one, with 14 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-REVIEW-006The host posts the baseline rendering while the side-by-side diff is on and takes only a well-formed switch message 3 testsSwRS-MDOKFSTUDIO-REVIEW-008The Side-by-side button switches the diff and is disabled in edit mode 5 testsSwRS-MDOKFSTUDIO-REVIEW-009A changed block shows as a side-by-side diff with its word marks, cut by line hunks, and a malformed baseline message is dropped 9 tests