feat(devtools): add hideInAutomation to keep devtools out of e2e tests (#549)

* feat(devtools): add hideInAutomation to keep devtools out of e2e tests

With plugins open by default, end-to-end tests that select elements by id
or text also matched the devtools panels. The workarounds were turning off
defaultOpen for every plugin or hiding #tanstack_devtools with CSS.

`hideInAutomation: true` skips the devtools DOM when navigator.webdriver is
true, which Playwright, Cypress, and Selenium set. Local development does
not change. The default is false, so suites that test the devtools
themselves keep working.

Fixes #318

* fix(devtools): ignore the open hotkey while hidden in automation

With hideInAutomation the devtools render nothing, but the open hotkey still
called toggleOpen(). That saved persistOpen and emitted trigger-toggled for
devtools that do not exist. The hotkey now uses the same check as the render.

* chore: raise the devtools size limit to 67 KB

* fix(devtools): resolve docs merge, let config win for hideInAutomation, ignore Escape while hidden
This commit is contained in:
Alem Tuzlak 2026-10-29 16:57:25 +01:00 • committed by GitHub
commit 8b3a032c47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 175 additions and 43 deletions