Setup Instructions
-
Install dependencies:
pnpm install -
Start AppBridge dev server:
cd libs/app-bridge && pnpm start(default port 3000) -
Open
http://localhost:3000/e2e-index.htmlin the browser -
Each test page has
data-testidattributes for Playwright/Cypress selectors
1. Core AppBridge Host Tests
Comprehensive E2E Host
All host scenarios: openApp, closeApp, scripting objects, events, lifecycle, metadata, callContext.
What to verify: Apps open and mount into containers. Scripting objects can be added/removed/invoked with correct callContext. Events reach subscribed apps. closeApp/closeAllApps cleans up properly.
Main Demo App
Original Loan Application demo with credit, pricing, and loan validation micro-apps.
What to verify: Loan form data flows to guest apps. Events (onLoanAmountChanged, etc.) update guest UIs. Credit score updates from guest. Save dispatches onPreSave with feedback.