Summary
Add browser-test coverage for focused buttons and contenteditable elements during
Space-key input while a Vue node drag is active.
Rationale
forwardSpaceKeyEvent in src/components/graph/GraphCanvas.vue has dedicated
exclusions for HTMLButtonElement and HTMLElement.isContentEditable.
The current tests cover text inputs and native selects, but they do not execute
these two exclusions.
Affected areas
browser_tests/tests/vueNodes/interactions/canvas/pan.spec.ts
src/components/graph/GraphCanvas.vue (forwardSpaceKeyEvent behavior)
Required changes
Add focused-control tests near the existing Space-key panning tests. Each test
must hold Space while the relevant control has focus and verify that canvas
panning does not start.
Cover these controls:
- A focused native button.
- A focused contenteditable element.
Acceptance criteria
- The button test verifies that
canvasOps.isReadOnly() remains false while
Space is held.
- The contenteditable test verifies that
canvasOps.isReadOnly() remains
false while Space is held.
- The tests use the browser-test conventions for this repository.
- The tests do not use
any or as any.
Backlinks
Summary
Add browser-test coverage for focused buttons and contenteditable elements during
Space-key input while a Vue node drag is active.
Rationale
forwardSpaceKeyEventinsrc/components/graph/GraphCanvas.vuehas dedicatedexclusions for
HTMLButtonElementandHTMLElement.isContentEditable.The current tests cover text inputs and native selects, but they do not execute
these two exclusions.
Affected areas
browser_tests/tests/vueNodes/interactions/canvas/pan.spec.tssrc/components/graph/GraphCanvas.vue(forwardSpaceKeyEventbehavior)Required changes
Add focused-control tests near the existing Space-key panning tests. Each test
must hold Space while the relevant control has focus and verify that canvas
panning does not start.
Cover these controls:
Acceptance criteria
canvasOps.isReadOnly()remainsfalsewhileSpace is held.
canvasOps.isReadOnly()remainsfalsewhile Space is held.anyoras any.Backlinks