Skip to content

chore(bridge): add sandbox e2e test suite#388

Open
patoo0x wants to merge 1 commit into
tmp/bridge-rebase-pr-readyfrom
eng-274/sandbox-e2e-plan
Open

chore(bridge): add sandbox e2e test suite#388
patoo0x wants to merge 1 commit into
tmp/bridge-rebase-pr-readyfrom
eng-274/sandbox-e2e-plan

Conversation

@patoo0x
Copy link
Copy Markdown
Contributor

@patoo0x patoo0x commented Jun 5, 2026

Summary

ENG-274. Adds an opt-in sandbox end-to-end test suite for the Bridge integration.

What's Included

Test Suite (test/flash/bridge-sandbox-e2e/)

  • Jest harness — config, setup with env gates, preflight checks, reusable helpers
  • KYC + virtual account specbridgeInitiateKyc, webhook injection, bridgeCreateVirtualAccount
  • External account spec — Plaid link URL generation, external-account webhook handling
  • Deposit + withdrawal spec — deposit webhook persistence, withdrawal error paths, idempotency
  • Cutover state spec — opt-in smoke (CUTOVER_TESTS=true)
  • LN parity spec — opt-in smoke (LN_PARITY_TESTS=true)

Infrastructure

  • Two npm scripts: test:bridge-sandbox-e2e and test:bridge-sandbox-e2e:ci
  • Guarded by RUN_BRIDGE_SANDBOX_E2E=true + IBEX_ENVIRONMENT=sandbox
  • Preflight source-code check verifies the Level 1 service guard

Service-Level Fix

Documentation Drift Cleanup

  • Updated docs/bridge-integration/: Level 2→Level 1, Tron→ETH-USDT references

How to Verify

See test/flash/bridge-sandbox-e2e/README.md for setup instructions, or docs/plans/2026-06-04-eng-274-bridge-sandbox-e2e.md for the full plan.

Related

ENG-274

ENG-274. Covers KYC, virtual account, external account, deposit,
withdrawal, post-cutover state, ETH-USDT LN parity, and ERPNext
audit-row verification. Guarded by RUN_BRIDGE_SANDBOX_E2E=true.
Includes preflight check for Level 1 service guard and
documentation drift cleanup (Level 2->Level 1, Tron->ETH-USDT).
@linear
Copy link
Copy Markdown

linear Bot commented Jun 5, 2026

ENG-274

@islandbitcoin islandbitcoin changed the title chore(bridge): add opt-in sandbox e2e test suite chore(bridge): add sandbox e2e test suite Jun 5, 2026
@patoo0x patoo0x changed the base branch from main to tmp/bridge-rebase-pr-ready June 5, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants