Behaviour SwRS-MDOKFSTUDIO-CORE-025
A failed render keeps the previous page and lists its diagnostics
When a render fails with an exception or yields diagnostics, the extension SHALL list each diagnostic in the status region as a file, a line and a message with a severity, and on a failure keep the failure message and mark the previous page as stale, or show an error page when no previous page exists.
Step 1 of path 1 in StRS-MDOKFSTUDIO-CORE-003: from “The preview shows a good render” to “The last good page stays with the diagnostics listed”.
Scenarios 4
The situations the tests check; open one to read it.
nominalDiagnostics listed
Givena render with one warning on line 3
Whenit is displayed
Thenthe status region shows the file, line 3 and the message with the warning severity
boundaryNo diagnostics
Givena render without diagnostics
Whenit is displayed
Thenthe diagnostic list is empty
nominalFailure after a good render
Givena page rendered earlier and a later render that throws
Whenthe failure occurs
Thenthe old page stays, marked stale ("Preview is stale"), and the failure message is kept ("The latest render failed." when the failure carries no message)
refusalFailure of the first render
Givena first render that throws
Whenthe failure occurs
Thenan error page ("Preview unavailable") shows the message ("The render failed." when the failure carries no message)
Implemented in 3
Tested by 4
Replaces
SwRS-MDOKFSTUDIO-CORE-024List diagnostics with file, line and severity superseded superseded by SwRS-MDOKFSTUDIO-CORE-025 Markdown file