Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-028

Threads that cannot be placed are listed in the Orphaned comments box

When the page cannot place a review thread, the extension SHALL list it as an entry of an Orphaned comments region placed after the content.

Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-REVIEW-001, in the state “The threads reach the page”.

Scenarios 7

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

nominalA thread outside any placeable block is listed
Givena thread whose line has no eligible block and whose quote is found nowhere
Whenthe thread is posted
Thenan Orphaned comments region after the content element lists it and no highlight is made
nominalAn entry shows the quote, the first comment and the count
GivenThen the entry shows
an orphaned thread with two commentsthe quote, "{author}: {first 120 characters of the first comment}" and "(2 comments)"
a resolved orphaned thread with one comment and no quote"(no quoted text)" and "(1 comment, resolved)"
boundaryNothing to list
Givenall threads placed
Whenthe threads are applied
Thenno Orphaned comments region exists
refusalThe page writes nothing for an orphaned thread
GivenWhenThen
an orphaned threadthe threads are appliedno comment message is posted to the host
an orphaned threadits entry is clickedonly the popover opens
boundaryThe box adds no scroll height at the end of the document
GivenWhenThen
a document with one orphan, a box shorter than the bottom padding of the contentthe page is measured with and without the boxthe scrollable height is the same
a box taller than the paddingthe page is measuredthe page is exactly as much taller as the box exceeds the padding
boundaryThe host verdict decides where a thread goes
Host verdict and situationOutcome
orphaned true, quote is on the pagelisted in the box without looking for the quote, not highlighted
orphaned false, no block at its linenot searched elsewhere, listed in the box
orphaned false, a block at its linethe quote is highlighted in that block as for a thread without verdict
orphaned false, the same quote also present in another blockonly the block of the line is searched
boundaryWithout a host verdict the quote is searched elsewhere
InputOutcome
quote of 12 or more characters that occurs once, in another blockhighlighted there
quote that occurs twicelisted as orphaned
quote under 12 characters that occurs oncelisted as orphaned

Implemented in 2

Tested by 3