Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-222

A click on a change bar or removed-lines marker opens the side-by-side diff of that block only

When the reader clicks a change bar or a removed-lines marker outside edit mode, the page SHALL show the side-by-side diff card of that block or removal only, in place, and SHALL close it on a second click on the same bar or marker or on Escape, while the Side-by-side button keeps showing every card.

Another outcome at step 3 of path 1 in StRS-MDOKFSTUDIO-REVIEW-017, in the state “Changed blocks carry a green bar”.

Scenarios 3

The situations the tests check; open one to read it.

nominalClick a bar, then click it again
Giventhe Diff button on, outside edit mode, a block marked as changed
Whenthe reader clicks its bar, then clicks the same bar again
Thenthe first click shows the side-by-side diff card of that block only, in place, and the second click closes it
boundaryEscape, the removed marker and the global button
InputOutcome
Escape while a single card is openthe card closes
A click on a removed-lines markerthe card of that removal opens
A click on another bar while one card is openthe card moves to that block
The Side-by-side buttonshows every card as before, whatever the single card
refusalNot in edit mode
Givenedit mode on
Whenthe reader clicks a bar or a marker
Thenno card opens, and no baseline is requested from the host

Implemented in 6

Tested by 5