feat(frontend-mock): phase 3 — exchange ui test surface#2
Merged
Conversation
- five pages: login+2fa, trading, wallet, kyc, account - dark terminal aesthetic: ibm plex mono, electric amber accent, scanline overlay - data-testid on every interactive element — placed for e2e test scenarios - error states as first-class citizens — every failure path is testable - vite dev proxy to mock-server — no cors, no hardcoded ports in components - live order book and ticker polling (2s interval) on trading page - withdrawal form with kyc gate, aml gate, and 2fa validation - kyc status rendering for all five state machine states - session list with per-session revocation on account page - mobile viewport support at 375px - packages/frontend-mock/README.md with data-testid reference table - packages/mock-server/API.md — full production-grade api reference - docs/adr/004-frontend-mock-rationale.md — why qa architects build their own test surface - root package.json bumped to v0.3.0 with author, repository, lint-staged metadata - changelog updated to v0.3.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements @qrypto/frontend-mock — a minimal but realistic exchange UI that serves as the dedicated test surface for @qrypto/e2e-suite. Five pages covering the full user journey: login+2FA, trading, wallet, KYC, and account management.
This is not a product. It is a QA-owned test surface — every element exists to support a specific e2e test scenario.
See docs/adr/004-frontend-mock-rationale.md for the full argument on why a QA architect builds their own test surface instead of coupling e2e tests to the production UI.
Type of change
feat— new capabilityScope
frontend-mockWhat ships
How to run
Terminal 1: npm run mock:start
Terminal 2: npm run frontend:start
Opens at http://localhost:3000
Checklist