docs: sync from backend ca2b1c4 — marketplace e2e smoke runner
This commit is contained in:
@@ -104,7 +104,8 @@ Add Playwright tests for:
|
||||
|
||||
## P1 - Notification Assertions
|
||||
|
||||
Turn [[Notification Assertion Procedure]] into reusable E2E helpers:
|
||||
Initial reusable E2E helpers are implemented in
|
||||
`backend/scripts/smoke/marketplace-e2e-notifications.mjs`. Remaining work:
|
||||
|
||||
- capture per-user notification baseline;
|
||||
- poll `GET /api/notifications` and `GET /api/notifications/unread-count`;
|
||||
@@ -113,6 +114,13 @@ Turn [[Notification Assertion Procedure]] into reusable E2E helpers:
|
||||
- record known notification gaps with route/action and expected recipient;
|
||||
- include notification latency in every E2E report.
|
||||
|
||||
Current dev findings from the first two-round runner report:
|
||||
|
||||
- `NOTIF-E2E-001` passes for buyer new-offer notifications.
|
||||
- Seller new-request fanout passes for privately targeted sellers.
|
||||
- Rejected-seller notifications pass by rejected offer `relatedId`.
|
||||
- `NOTIF-E2E-002` fails by selected offer `relatedId`; accepted-offer notification is not discoverable with the selected offer id.
|
||||
|
||||
Acceptance tests:
|
||||
|
||||
| ID | Expected |
|
||||
@@ -125,8 +133,8 @@ Acceptance tests:
|
||||
|
||||
## P1 - Concurrency and Performance Profile
|
||||
|
||||
Implement [[Concurrency and Performance Profile]] as an executable runner and
|
||||
report generator:
|
||||
Initial executable runner and report generator are implemented in
|
||||
`backend/scripts/smoke/marketplace-e2e-notifications.mjs`. Remaining work:
|
||||
|
||||
- worker abstraction for one isolated buyer/sellers/payment/delivery flow;
|
||||
- barrier start for simultaneous workers;
|
||||
@@ -136,6 +144,13 @@ report generator:
|
||||
- infrastructure snapshots before/during/after each stage;
|
||||
- stop-condition enforcement.
|
||||
|
||||
Current dev blocker:
|
||||
|
||||
- Dev API rate limiting is `100` requests per `900s`, so C2+ ramp runs need a
|
||||
fresh window, a lower-polling profile, or a non-rate-limited test environment.
|
||||
- `PAYMENT_MODE=record` currently fails because `POST /api/marketplace/payments`
|
||||
returns HTTP 500 after offer selection with generated test actors.
|
||||
|
||||
Acceptance tests:
|
||||
|
||||
| ID | Expected |
|
||||
@@ -179,10 +194,13 @@ Add dashboards/log queries for:
|
||||
|
||||
## Suggested Next Automation Order
|
||||
|
||||
1. Convert the two-round BSC Testnet E2E procedure into a committed smoke script.
|
||||
2. Add non-buyer delivery confirmation regression test.
|
||||
3. Add scanner negative tests for wrong token and underpayment.
|
||||
4. Implement physical vs digital release policy.
|
||||
5. Add release-policy tests.
|
||||
6. Resolve dispute route/policy gaps.
|
||||
7. Add dispute-to-release/refund E2E tests.
|
||||
1. Fix selected-seller accepted notification related id.
|
||||
2. Fix or retire the legacy `POST /api/marketplace/payments` record path.
|
||||
3. Run `PAYMENT_MODE=status` through delivery after the dev rate-limit window resets.
|
||||
4. Run `PAYMENT_MODE=live` once wallet gas/tUSDT and rate-limit headroom are available.
|
||||
5. Add non-buyer delivery confirmation regression test.
|
||||
6. Add scanner negative tests for wrong token and underpayment.
|
||||
7. Implement physical vs digital release policy.
|
||||
8. Add release-policy tests.
|
||||
9. Resolve dispute route/policy gaps.
|
||||
10. Add dispute-to-release/refund E2E tests.
|
||||
|
||||
Reference in New Issue
Block a user