Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-THEME-011

A reader zooms the text and the column and keeps the zoom

As a reader, I enlarge or shrink the text with two buttons, the column grows or shrinks with it, I always see the zoom the next click gives, and I stay on the text I was reading; I set the text size once and the previews of this workspace open at that size, also after reloading the window or closing and reopening the preview.

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: Zoom in and keep the zoom other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-THEME-038: Zoom in and out change the zoom by 10 points within limitsSwRS-MDOKFSTUDIO-THEME-0382 teststhe reader presses Zoom in, whichchanges the zoom by 10 pointsSwRS-MDOKFSTUDIO-THEME-043: Zoom scales the text and the column without a redrawSwRS-MDOKFSTUDIO-THEME-0434 teststhe content font size and thecontent column width are set fromthe zoom, never wider than thepaneSwRS-MDOKFSTUDIO-LIFE-169: A view choice made on the page is stored for the workspaceSwRS-MDOKFSTUDIO-LIFE-16915 teststhe host stores the zoom for theworkspaceSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 teststhe preview opens again at thesaved zoomSwRS-MDOKFSTUDIO-THEME-038: Zoom in and out change the zoom by 10 points within limitsSwRS-MDOKFSTUDIO-THEME-0382 testsat the last step the button is disabled at its limitSwRS-MDOKFSTUDIO-THEME-038: Zoom in and out change the zoom by 10 points within limitsSwRS-MDOKFSTUDIO-THEME-0382 testsa click at a limit changes nothingSwRS-MDOKFSTUDIO-LIFE-170: A new page starts each view choice from the panel, stored or default valueSwRS-MDOKFSTUDIO-LIFE-17014 teststhe zoom is rounded to the grid and clampedThe page is shown at a zoomThe page is shown at azoomThe zoom has changedThe zoom has changedThe text and the column are scaled togetherThe text and the columnare scaled togetherThe zoom is storedThe zoom is storedThe page opens at the zoom the reader choseThe page opens at thezoom the reader chose

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

Behaviours of this use case

SwRS-MDOKFSTUDIO-THEME-038Zoom in and out change the zoom by 10 points within limits 2 testsSwRS-MDOKFSTUDIO-THEME-043Zoom scales the text and the column without a redraw 4 tests
SwRS-MDOKFSTUDIO-THEME-055A zoom that cannot be saved still holds for the session deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TOOLBAR-013The host accepts only a known view preference with a valid value superseded superseded by SwRS-MDOKFSTUDIO-LIFE-169 Markdown file