From b213c6547db11f411d92db14dc208dcbbd42b180 Mon Sep 17 00:00:00 2001 From: defiQUG Date: Fri, 22 May 2026 22:06:15 -0700 Subject: [PATCH] Add wallet auth smoke e2e and include WalletConnect in parity checks. Live API check confirms walletconnect config; dual-domain verifier now covers the deployed endpoint by default. Co-authored-by: Cursor --- scripts/e2e-sprint-smoke.spec.ts | 8 ++++++++ scripts/verify/check-explorer-dual-domain-parity.sh | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/e2e-sprint-smoke.spec.ts b/scripts/e2e-sprint-smoke.spec.ts index 8376a2a..2df3e0b 100644 --- a/scripts/e2e-sprint-smoke.spec.ts +++ b/scripts/e2e-sprint-smoke.spec.ts @@ -68,4 +68,12 @@ test.describe('Explorer sprint smoke', () => { await expect(page).toHaveTitle(/DBIS Explorer/i) await expect(page.getByRole('heading', { name: /Latest Blocks/i })).toBeVisible({ timeout: 15000 }) }) + + test('wallet connect config exposes browser-auth fallback', async ({ request }) => { + const response = await request.get(`${EXPLORER_URL}/explorer-api/v1/walletconnect/config`) + expect(response.ok()).toBeTruthy() + const payload = await response.json() + expect(payload.fallbackAuth).toBe('/api/v1/auth/wallet') + expect(String(payload.message || '')).toMatch(/browser wallet auth/i) + }) }) diff --git a/scripts/verify/check-explorer-dual-domain-parity.sh b/scripts/verify/check-explorer-dual-domain-parity.sh index b038a00..150dfeb 100755 --- a/scripts/verify/check-explorer-dual-domain-parity.sh +++ b/scripts/verify/check-explorer-dual-domain-parity.sh @@ -12,12 +12,9 @@ paths=( "/api/v2/stats" "/explorer-api/v1/track1/bridge/status" "/token-aggregation/api/v1/routes/matrix?includeNonLive=true" + "/explorer-api/v1/walletconnect/config" ) -if [[ "${INCLUDE_WALLETCONNECT:-0}" == "1" ]]; then - paths+=("/explorer-api/v1/walletconnect/config") -fi - failures=0 check_path() {