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 <cursoragent@cursor.com>
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user