Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-REVIEW-021

A highlight, badge or orphan entry opens the thread popover

When a reader clicks, or presses Enter or Space on, a thread highlight, a thread badge or an orphaned comments entry while comments are shown, the extension SHALL toggle the popover of that thread, which lists every comment as plain text and stays inside the pane.

Step 3 of path 1 in StRS-MDOKFSTUDIO-REVIEW-001: from “The quoted text is highlighted” to “The thread popover lists the comments”.

Part of StRS-MDOKFSTUDIO-REVIEW-003, outside the paths drawn on its map.

Scenarios 7

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

nominalClick toggles the popover of one thread
GivenWhenThen
a highlighted quotethe reader clicks itthe popover opens, and the click edits no block and follows no link
the popover is openthe reader clicks the same highlight againthe popover closes, or asks Discard or Keep editing when the reply box holds text
a popover open for one threadthe reader clicks the highlight of another threadthe popover of the second thread replaces the first
comments hidden (button off or setting false)the reader clicks a former highlightno popover opens and the click acts as on plain text (SwRS-MDOKFSTUDIO-REVIEW-152)
nominalEnter or Space on a focused target
InputOutcome
Enter on a focused highlight, badge or orphaned comments entrythe popover opens (or closes) and the key does nothing else
Space on a focused highlight, badge or orphaned comments entrythe popover opens (or closes) and the key does nothing else
any other key on a focused highlightthe popover state does not change
nominalThe popover lists every comment as text
Givena thread with a first comment and a reply
a comment body made of an HTML tag
Whenthe popover opens
the popover opens
Thenboth entries appear in order, each with author, date in the local format and body
the tag is shown as text
nominalThe popover of a resolved thread shows a Resolved note
GivenWhenThen
a resolved threadthe popover opensa Resolved note appears and the popover carries the resolved attribute
an open threadthe popover opensno Resolved note appears
boundaryThe popover stays inside the pane horizontally
InputOutcome
popover openedits width is at most 360 px and its left edge is at least 8 px from the left edge of the pane
highlight close to the right edge of a pane at least 216 px widethe left edge is moved so that the popover ends at least 8 px before the right edge
pane narrower than 376 pxthe width is the pane width minus 16 px, never below 200 px
refusalClosing the popover
InputOutcome
Escape while a popover is openthe popover closes and the event is stopped from reaching other handlers
Escape with no popover openthe key reaches the other handlers
Escape on a popover that asks "Delete thread?", then the thread is opened againthe popover shows Resolve and Delete, not the question
click outside a popover that asks "Delete thread?"the popover closes
Escape, or a press outside, on a popover whose reply box holds textthe popover stays and asks Discard or Keep editing (SwRS-MDOKFSTUDIO-REVIEW-218)
boundaryThe threads are posted again while a popover is open
Open stateThread still postedThread no longer posted
popoverthe popover for the same thread is open on the new highlight, badge or entrythe popover is closed
reply box with the text "draft"the reopened reply box shows "draft"the popover and the draft are gone (thread deleted by another tool)
popover asking "Delete thread?"the popover still asks the question with Yes and Nonot applicable
a question for one thread, then another thread openedno question is shown for the other threadnot applicable

Implemented in 1

Tested by 3