From a978e1b8bb23c3528f5bc46143123a7cc5c52f5f Mon Sep 17 00:00:00 2001 From: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 Date: Thu, 2 Jul 2026 14:09:29 -0400 Subject: [PATCH] chore(relay-reconnect): fix biome formatting in sidebar-relay-card spec Collapse waitForFunction arrow style to match biome's expected format (remove trailing comma wrapping around the callback). Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- desktop/tests/e2e/sidebar-relay-card.spec.ts | 24 +++++++++----------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/desktop/tests/e2e/sidebar-relay-card.spec.ts b/desktop/tests/e2e/sidebar-relay-card.spec.ts index 8bdb8a5151..f08faf90ac 100644 --- a/desktop/tests/e2e/sidebar-relay-card.spec.ts +++ b/desktop/tests/e2e/sidebar-relay-card.spec.ts @@ -44,19 +44,17 @@ async function setRelayConnectionState( // first. Without this guard, the mock relay's async auth handshake (started // on page load) can race the override and set state back to "connected" // after we've driven it to a degraded value. - await page.waitForFunction( - () => { - const win = window as Window & { - __BUZZ_E2E_GET_RELAY_CONNECTION_STATE__?: () => string; - __BUZZ_E2E_SET_RELAY_CONNECTION_STATE__?: unknown; - }; - return ( - typeof win.__BUZZ_E2E_SET_RELAY_CONNECTION_STATE__ === "function" && - typeof win.__BUZZ_E2E_GET_RELAY_CONNECTION_STATE__ === "function" && - win.__BUZZ_E2E_GET_RELAY_CONNECTION_STATE__() === "connected" - ); - }, - ); + await page.waitForFunction(() => { + const win = window as Window & { + __BUZZ_E2E_GET_RELAY_CONNECTION_STATE__?: () => string; + __BUZZ_E2E_SET_RELAY_CONNECTION_STATE__?: unknown; + }; + return ( + typeof win.__BUZZ_E2E_SET_RELAY_CONNECTION_STATE__ === "function" && + typeof win.__BUZZ_E2E_GET_RELAY_CONNECTION_STATE__ === "function" && + win.__BUZZ_E2E_GET_RELAY_CONNECTION_STATE__() === "connected" + ); + }); } else { // When driving to "connected", just wait for the seam to be installed — // no need to gate on the current state since we're overriding it directly.