mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
sidebar-relay-card.spec.ts and relay-connectivity.spec.ts both tested the old contract where a stale channelsReadError alone could pin the relay card visible while connection state was "connected". The new gate (hasActiveRelayUnreachableError && !isRelayConnectionConnected) correctly suppresses stale errors when connected is authoritative. Add __BUZZ_E2E_GET_RELAY_CONNECTION_STATE__ seam to e2eBridge.ts so specs can observe the relay state before overriding it. Gate the seam wait on the target state: when driving to a degraded state, wait for the relay to reach "connected" first (prevents the async auth handshake from racing back over the override); when driving to "connected", just wait for the seam to be installed — no baseline required. All 15 targeted E2E tests pass locally (6 smoke + 9 integration). Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>