Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-REVIEW-008: The Side-by-side button switches the diff and is disabled in edit modeSwRS-MDOKFSTUDIO-REVIEW-0085 teststhe writer presses theSide-by-side button and the pagetells the host that the diff is onSwRS-MDOKFSTUDIO-REVIEW-006: The host posts the baseline rendering while the side-by-side diff is on and takes only a well-formed switch messageSwRS-MDOKFSTUDIO-REVIEW-0063 teststhe host renders the last-committext and posts it with the hunksSwRS-MDOKFSTUDIO-REVIEW-009: A changed block shows as a side-by-side diff with its word marks, cut by line hunks, and a malformed baseline message is droppedSwRS-MDOKFSTUDIO-REVIEW-0099 testseach changed block becomes a card,last commit left and currentright, with word marksSwRS-MDOKFSTUDIO-REVIEW-008: The Side-by-side button switches the diff and is disabled in edit modeSwRS-MDOKFSTUDIO-REVIEW-0085 testspressing the button again turnsthe diff offSwRS-MDOKFSTUDIO-REVIEW-008: The Side-by-side button switches the diff and is disabled in edit modeSwRS-MDOKFSTUDIO-REVIEW-0085 teststhe button is disabled inedit modeSwRS-MDOKFSTUDIO-REVIEW-006: The host posts the baseline rendering while the side-by-side diff is on and takes only a well-formed switch messageSwRS-MDOKFSTUDIO-REVIEW-0063 testsan untracked file has an empty baselineA file tracked by Git differs from its last commitA file tracked by Gitdiffers from its lastcommitThe host is told the diff is onThe host is told thediff is onThe page holds the baselineThe page holds thebaselineChanged blocks show as cardsChanged blocks show ascardsThe original blocks are backThe original blocks areback

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