Good tests prove behavior, not implementation. Ask Blink to follow your existing libraries and conventions, cover edge cases, and keep tests fast and deterministic.
Context:- Stack: Next.js + React, Jest + Testing Library, Playwright for e2e- Target: checkout flow (cart -> payment -> confirmation)- Acceptance: unit tests for totals, integration test for form, e2e happy pathTask: Generate tests matching our patterns (see tests/cart.test.ts for style). Add data builders, avoid real network calls, and ensure idempotent runs in CI.
Copy
We’ve seen flakiness in our e2e.- Suggest fixes (timeouts, deterministic IDs, network stubs)- Show Playwright config tweaks- Add retry strategy that won’t hide real failures