Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-DIAG-015

A writer reads charts and drawings in the page

A writer puts a chart or a drawing in the document and sees it in the page, with nothing executed or fetched.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per 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: Read a chart in the page path 2: Read a drawing in the page other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-DIAG-121: Vega-Lite and Vega fences become chart figuresSwRS-MDOKFSTUDIO-DIAG-1213 teststhe fence becomes a chart figurewith a collapsed source sectionSwRS-MDOKFSTUDIO-DIAG-124: Chart expressions are evaluated without eval under an unchanged policySwRS-MDOKFSTUDIO-DIAG-1245 teststhe chart runtime loads with thechart and needs no evalSwRS-MDOKFSTUDIO-DIAG-125: SVG blocks are drawn inline after the sanitizer rebuilt themSwRS-MDOKFSTUDIO-DIAG-1254 teststhe SVG is rebuilt from anallow-list and drawn inlineSwRS-MDOKFSTUDIO-DIAG-126: A picture takes its colours from the preview themeSwRS-MDOKFSTUDIO-DIAG-1263 teststhe picture takes its colours fromthe preview themeSwRS-MDOKFSTUDIO-DIAG-122: Chart data files are read through the resource policySwRS-MDOKFSTUDIO-DIAG-1224 testschart data comes only from a file inside the allowed folders;a remote url shows a messageA document holds a Vega-Lite or Vega fenceA document holds aVega-Lite or Vega fenceThe page has a chart figureThe page has a chartfigureThe chart is drawn in the colours of the pageThe chart is drawn inthe colours of the pageA document holds an svg fence or a raw svg blockA document holds an svgfence or a raw svg blockThe drawing is in the pageThe drawing is in thepageThe writer clicks the picture in edit modeThe writer clicks thepicture in edit mode

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

Behaviours of this use case

SwRS-MDOKFSTUDIO-DIAG-121Vega-Lite and Vega fences become chart figures 3 testsSwRS-MDOKFSTUDIO-DIAG-122Chart data files are read through the resource policy 4 testsSwRS-MDOKFSTUDIO-DIAG-123Charts are drawn as themed SVG pictures with errors in place 3 testsSwRS-MDOKFSTUDIO-DIAG-124Chart expressions are evaluated without eval under an unchanged policy 5 testsSwRS-MDOKFSTUDIO-DIAG-125SVG blocks are drawn inline after the sanitizer rebuilt them 4 testsSwRS-MDOKFSTUDIO-DIAG-126A picture takes its colours from the preview theme 3 testsSwRS-MDOKFSTUDIO-DIAG-127A click on a picture opens its source editor 2 tests