fix(editor): the drawing stays clear of the strip while the page scrolls

The drawing column (chips, tools, canvas, add row, message line) is
pinned under the strip from 1 024 px wide and 644 px high; the canvas
box is capped in width by the window height (4:3 kept, unchanged at the
three sizes); pinned controls carry no strip margin. The rev 4 test
workarounds go; the row-click scroll was Playwright's bring-into-view.
This commit is contained in:
bchanot committed 2026-11-19 20:19:26 +01:00
1 parent da04c79d13
commit 36ed9f980b
7 files changed
+286 -31

No files matched your search

+2 -3
View File
@@ -256,8 +256,6 @@ async function modifyAnnotations(page: Page) {
*/
async function repairGeometry(page: Page) {
await toolButton(page, dict, 'point').click()
// The last row click scrolled the page: the drawing's top edge is under the sticky strip.
await scrollToTop(page)
// On this 200 x 150 drawing the core keeps a shrunk marker at 1 unit from the edge: the
// proposal of a corrected position needs a click on the edge itself (editor-geometry
// covers it on a 1 000-unit drawing). Here the click is placed at once.
@@ -337,7 +335,8 @@ test.describe('editor journey (owner trial steps)', () => {
await historyButton(page, dict, 'undo').click()
await historyButton(page, dict, 'redo').click()
const modified = await modifyAnnotations(page)
// At rest: scrolled, the stuck strip covers part of the aside's targets (axe target-size).
// Scrolled, the side panel still passes under the strip (only the drawing column is
// pinned): a row under it fails axe's target-size. The scan runs at rest, at the top.
await scrollToTop(page)
await expectAccessible(page, 'the editor with annotations')
await saveDraft(page, dict, 1)