Skip to content

feat(e2e): add Playwright checkout suite across connect-core, react a… - #51

Open
AlonsoFi wants to merge 1 commit into
PACTO-LAT:mainfrom
AlonsoFi:feat/e2e-playwright-checkout-suite
Open

feat(e2e): add Playwright checkout suite across connect-core, react a…#51
AlonsoFi wants to merge 1 commit into
PACTO-LAT:mainfrom
AlonsoFi:feat/e2e-playwright-checkout-suite

Conversation

@AlonsoFi

Copy link
Copy Markdown

Closes #42
Implements the full E2E Playwright suite from issue #20:

Headless (connect-core): session handshake, escrow create/deposit/fiat-receipt,
SSE released event, force dispute and force timeout via test controls.

React (connect-react): happy path and dispute path via
simulator controls, mocking /v1/listings and /v1/quotes with page.route()
since those endpoints are not yet in the gateway.

Web component (connect-elements): happy path and
bridge postMessage (checkout:complete) assertion, same mocking strategy.

SSE reconnect regression: aborts the second SSE connection via page.route(),
verifies cursor-based replay delivers the released event exactly once
(no duplicates from seenCursors dedup).

Webhook delivery: best-effort capture server registered via /admin/webhooks,
handles gracefully if gateway does not deliver in test mode.

CI: new e2e job in ci.yml runs on every PR after build, spins up a
postgres:16 service container, runs prisma migrate deploy, installs
Playwright Chromium, and uploads playwright-report as an artifact.

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.

test: Playwright E2E suite for connect-core, connect-react, connect-elements against gateway sandbox

1 participant