From f1bc52d9c65e736d6b69e85af7f601e6f77d3cb3 Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 8 Aug 2026 18:11:07 -0600 Subject: [PATCH] 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) --- app/package-lock.json | 24 ++++++++++-------------- app/package.json | 2 +- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/app/package-lock.json b/app/package-lock.json index 40aafcc6..68b8f5ba 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -16,7 +16,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", @@ -5546,14 +5546,12 @@ } }, "node_modules/@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, + "version": "14.6.1", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz", + "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==", + "license": "MIT", "engines": { - "node": ">=10", + "node": ">=12", "npm": ">=6" }, "peerDependencies": { @@ -25486,12 +25484,10 @@ } }, "@testing-library/user-event": { - "version": "13.5.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", - "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", - "requires": { - "@babel/runtime": "^7.12.5" - } + "version": "14.6.1", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz", + "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==", + "requires": {} }, "@tootallnate/once": { "version": "1.1.2", diff --git a/app/package.json b/app/package.json index 13b0fa90..8df76933 100644 --- a/app/package.json +++ b/app/package.json @@ -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",