Files
buzz/desktop/src
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger 3f7723428e fix(relay-reconnect): update e2e specs for connected-state gate
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>
2026-07-02 14:05:09 -04:00
..