mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
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:
parent
bbe529ad64
commit
8b3a032c47
8 changed files with 175 additions and 43 deletions
Loading…
Add table
Add a link
Reference in a new issue