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
| Given | Then the entry shows |
|---|---|
| an orphaned thread with two comments | the 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
| Given | When | Then |
|---|---|---|
| an orphaned thread | the threads are applied | no comment message is posted to the host |
| an orphaned thread | its entry is clicked | only the popover opens |
boundaryThe box adds no scroll height at the end of the document
| Given | When | Then |
|---|---|---|
| a document with one orphan, a box shorter than the bottom padding of the content | the page is measured with and without the box | the scrollable height is the same |
| a box taller than the padding | the page is measured | the page is exactly as much taller as the box exceeds the padding |
boundaryThe host verdict decides where a thread goes
| Host verdict and situation | Outcome |
|---|---|
| orphaned true, quote is on the page | listed in the box without looking for the quote, not highlighted |
| orphaned false, no block at its line | not searched elsewhere, listed in the box |
| orphaned false, a block at its line | the quote is highlighted in that block as for a thread without verdict |
| orphaned false, the same quote also present in another block | only the block of the line is searched |
boundaryWithout a host verdict the quote is searched elsewhere
| Input | Outcome |
|---|---|
| quote of 12 or more characters that occurs once, in another block | highlighted there |
| quote that occurs twice | listed as orphaned |
| quote under 12 characters that occurs once | listed as orphaned |