n8n/packages
Matsuuu 3a047157f1
test(editor): Harden AgentBuilderView MCP-toggle tests against a dropped toggle (no-changelog)
Both MCP-toggle tests fail intermittently on master with `Number of calls: 0`
on the autosave spy (4 of the last 5 Frontend shard-1 failures), which reads as
"the debounce never fired" and sends you looking at the fake clock.

The fake clock is fine. What the assertion cannot distinguish is the case where
the toggle was never accepted: the view renders the editor column as soon as
`initialize()` settles — including the path where the agent failed to load,
since `initialized` is set in the `finally` — and `onToggleMcpAccess` then
returns early on a null agent, leaving nothing queued and nothing to flush.

So assert both preconditions the tests were taking on trust: that the agent is
loaded before emitting, and that the toggle was registered (`agentAvailableInMcp`
flips) before advancing the clock or switching agents. A mount problem now
reports itself at the mount instead of as a spy with zero calls, and neither
test depends on one tick being enough.

https://linear.app/n8n/issue/TRUST-402
2026-08-14 13:05:40 +03:00
..
@n8n feat(API): Add endpoint to get a single role (#36279) 2026-08-14 09:04:28 +00:00
cli feat(API): Add endpoint to get a single role (#36279) 2026-08-14 09:04:28 +00:00
core fix(core): Expose incoming request headers to MCP trigger tools (#35236) 2026-08-13 14:24:28 +00:00
extensions/insights 🚀 Release 2.34.0 (#35487) 2026-08-04 07:14:55 +00:00
frontend test(editor): Harden AgentBuilderView MCP-toggle tests against a dropped toggle (no-changelog) 2026-08-14 13:05:40 +03:00
modules build(editor): Add the frontend module workspace layout and shared tsconfig base (no-changelog) (#35957) 2026-08-11 08:19:26 +00:00
node-dev chore: Set up repository for TypeScript 7 migration (#33890) 2026-07-09 13:21:16 +03:00
nodes-base feat(API): Add endpoint to get a single role (#36279) 2026-08-14 09:04:28 +00:00
testing fix: Resolve the codespace box name from disk and fix the dev-loop guidance (no-changelog) (#36254) 2026-08-14 08:49:50 +00:00
workflow feat(core): Validate node id uniqueness in workflow structure (no-changelog) (#35129) 2026-08-14 08:08:00 +00:00