2026-05-27 15:28:04 -04:00
|
|
|
---
|
|
|
|
|
name: test-scanner-redesign-surfaces
|
|
|
|
|
classification: test
|
|
|
|
|
success_metric: |
|
|
|
|
|
Vitest covers scanner redesign API validation and key component behaviors
|
|
|
|
|
(destination picker, scanned card row, upload-image auth/rate-limit/MIME).
|
|
|
|
|
depends_on:
|
|
|
|
|
- redesign-scanner-flow
|
2026-06-02 12:01:27 -04:00
|
|
|
status: shipped
|
2026-05-27 15:28:04 -04:00
|
|
|
created: 2026-05-27
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# Convoy: test-scanner-redesign-surfaces
|
|
|
|
|
|
2026-06-02 12:01:27 -04:00
|
|
|
**As-shipped:** PR #47 (2026-05-27). Vitest coverage for redesign API validation and scanner components.
|
|
|
|
|
|
2026-05-27 15:28:04 -04:00
|
|
|
P2 follow-up from `audit-redesign-scanner-flow-44` reviewer report.
|
|
|
|
|
|
|
|
|
|
## Scope
|
|
|
|
|
|
|
|
|
|
- `test/api/user-cards.test.js` — quantity validation
|
|
|
|
|
- `test/api/scan/upload-image.test.js` — auth, rate limit, MIME rejection
|
|
|
|
|
- `test/components/ScannerDestinationPicker.test.js` — game filter + destination toggle
|
|
|
|
|
- `test/components/ScannedCardItem.test.js` — ownership badge + metadata controls
|
|
|
|
|
|
|
|
|
|
## Acceptance criteria
|
|
|
|
|
|
|
|
|
|
1. `npm run test:run` green with new tests exercising real behavior (not implementation trivia).
|
|
|
|
|
2. No live DB or Blob calls in tests.
|