test: user-event that matches the DOM library it drives

Rebasing onto master brought @testing-library/dom 8.20.0 -> 10.4.1, while
user-event stayed at 13.5.0.  v13 targets dom v8 and reaches into internals v10
moved, so its keyboard simulation silently stopped dispatching: two SearchBox
tests failed with `Number of calls: 0` -- the arrow keys and Enter did nothing.

Test-harness only.  @testing-library/dom never reaches a build, and no product
code changed in the rebase; the combination was simply never installed together
until master's bump met this branch.

v14's direct API is call-compatible with what the ten suites already do, so no
test needed rewriting -- the calls were already awaited.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-08 18:11:07 -06:00
parent 24e2dd8b9b
commit f1bc52d9c6
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 11 additions and 15 deletions

View file

@ -11,7 +11,7 @@
"@mantine/notifications": "^8.3.18",
"@tabler/icons-react": "^3.46.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@testing-library/user-event": "^14.6.1",
"cypress": "^15.20.0",
"esptool-js": "^0.6.0",
"lodash": "^4.18.1",