Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-TABLE-006

Tab, arrows and editing keys work in a table cell

As a writer, I move through a table with the keyboard, cell by cell, and add a row by pressing Tab in the last cell; I use the keys I know in a cell and they edit the cell, not the page or the source document.

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: Move through the cells with the keyboard other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-TABLE-123: Tab and the arrow keys move between table cellsSwRS-MDOKFSTUDIO-TABLE-1234 teststhe writer presses Tab, Shift+Tabor an arrow key at the edge of thetext and the editor moves to thenext, previous or neighbouringcellSwRS-MDOKFSTUDIO-TABLE-124: Tab in the last cell adds a row and shows the hintSwRS-MDOKFSTUDIO-TABLE-1244 testsTab in the last cell adds a rowSwRS-MDOKFSTUDIO-TABLE-124: Tab in the last cell adds a row and shows the hintSwRS-MDOKFSTUDIO-TABLE-1244 teststhe final save cannot be postedA cell editor is openA cell editor is openThe editor is in the neighbouring cellThe editor is in theneighbouring cell

This map has 10 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-BLOCK-003Edit-mode text box follows VS Code undo, redo, select-all and delete-line key bindings not on the map8 testsSwRS-MDOKFSTUDIO-BLOCK-069Marker keys wrap a selection; Home, End, select-all and undo stay in the text box not on the map8 testsSwRS-MDOKFSTUDIO-TABLE-123Tab and the arrow keys move between table cells 4 testsSwRS-MDOKFSTUDIO-TABLE-124Tab in the last cell adds a row and shows the hint 4 testsSwRS-MDOKFSTUDIO-TABLE-125The cell left shows its typed text rendered not on the map4 testsSwRS-MDOKFSTUDIO-TABLE-126The cell editor is revealed in the table's scroll box not on the map1 test
SwRS-MDOKFSTUDIO-TABLE-035Tab and the arrow keys move through the table cells superseded superseded by SwRS-MDOKFSTUDIO-TABLE-123, SwRS-MDOKFSTUDIO-TABLE-124, SwRS-MDOKFSTUDIO-TABLE-125, SwRS-MDOKFSTUDIO-TABLE-126 Markdown file
SwRS-MDOKFSTUDIO-TABLE-044Typing a marker character over a selection in a cell wraps it as one undoable step deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TABLE-045Undo and redo shortcuts stay in the cell text box deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TABLE-046A key the cell editor handled does not reach VS Code deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-TABLE-047Select all in the cell text box selects only the box text deprecated deprecated Markdown file