ledgerone_backend/docs/test-cases.md
2026-02-24 21:45:18 +00:00

27 lines
964 B
Markdown

# LedgerOne Test Cases
## Auth
- Register new user with valid email/password returns token and user id.
- Register with existing email returns error.
- Login with wrong password returns error.
- Login with valid credentials returns token and user id.
## Transactions
- List transactions returns raw + derived fields for user.
- Update derived creates overlay without mutating raw.
- Update derived preserves raw transaction id and logs modifiedBy=user.
## Rules Engine
- Create rule with priority stores conditions/actions JSON.
- Execute rule applies category/hidden to derived layer only.
- Rule execution logs include rule id and transaction id.
- Suggestions return patterns when at least 2 matching edits exist.
## Exports
- Export CSV includes raw + derived fields for selected filters.
- Export log stored with filters + row count.
## Plaid (Stub)
- Link token endpoint returns token + expiration.
- Exchange endpoint returns access token placeholder.