Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TRUST-001

A document opens editable whatever the trust, with narrow reads outside a trusted folder

As a writer, I open a document in Restricted Mode, or a file from outside my workspace, and edit it as I do anywhere else; the preview reads no more than the folder of the document, and I am told why a feature that needs trust is off.

Use case diagram

How it is split

This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.

path 1: Edit in an untrusted workspace other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TRUST-001: A document is editable whatever the trust; only its reads are restrictedSwRS-MDOKFSTUDIO-TRUST-00116 testsevery affordance that edits,comments or changes the documentis kept, as in a trusted workspaceSwRS-MDOKFSTUDIO-TRUST-005: The host handles the page messages of every preview, whatever the trustSwRS-MDOKFSTUDIO-TRUST-00517 testsa write request for the render thehost holds is handled as for atrusted workspaceSwRS-MDOKFSTUDIO-TRUST-001: A document is editable whatever the trust; only its reads are restrictedSwRS-MDOKFSTUDIO-TRUST-00116 testsa feature that needs truststays disabled and gives itsreasonSwRS-MDOKFSTUDIO-TRUST-005: The host handles the page messages of every preview, whatever the trustSwRS-MDOKFSTUDIO-TRUST-00517 teststhe citation list needs a trusted workspace folder and therefusal names its causeA preview is created for a document in no workspace folder, or in an untrusted workspaceA preview is created fora document in noworkspace folder, or inan untrusted workspaceThe document is editableThe document is editableThe edit is written to the documentThe edit is written tothe document

This map has 48 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 11 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-TRUST-001A document is editable whatever the trust; only its reads are restricted 16 testsSwRS-MDOKFSTUDIO-TRUST-005The host handles the page messages of every preview, whatever the trust 17 tests
SwRS-MDOKFSTUDIO-TRUST-006A preview with restricted reads keeps every viewing action superseded superseded by SwRS-MDOKFSTUDIO-TRUST-005 Markdown file