feat(api-suite): phase 4 — Playwright API test suite [v0.4.0]#3
Merged
Conversation
- BaseApiClient: retry, auth injection, correlation ids, 429 handling - domain clients: AuthClient, KycClient, WalletClient, TradingClient, AdminClient - auth tests: login, 2fa, brute-force lockout, token lifecycle, sessions, idor - kyc tests: withdrawal gate for all states, aml blocking, state machine - wallet tests: satoshi precision, fee accuracy, balance invariant, deposit confirm - trading tests: order placement, idor protection, cancellation, market data - calculation tests: float precision traps, fee accuracy, multi-op balance precision - race condition tests: concurrent withdrawals, simultaneous orders, parallel kyc - global setup: server health check + state reset before all tests - workers set to 1 — stateful mock server requires serial execution - mock server fixes: rate limit threshold, session revocation, unverified user wallet - packages/api-suite/README.md with coverage map and p0/p1/p2 priority table - root package.json bumped to v0.4.0 - changelog updated to v0.4.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/api-suite — a Playwright API test suite covering the full exchange surface with zero browser overhead. Full suite runs in under 35 seconds with workers: 1 (required for a stateful mock server).
94 tests passing across 6 domains.
Type of change
feat— new capabilityScope
api-suite,mock-serverWhat ships
Test suite:
Mock server fixes (found during testing):
Architecture decision:
How to run
Terminal 1: npm run mock:start
Terminal 2: npm run test:api
Smoke only: npm run test:api -- --grep @smoke
Report: npm run report --workspace=packages/api-suite
Checklist