Unlock reliable confidence fast: enable safe refactors by choosing the right test layer, making the app observable, and eliminating nondeterminism so failures are actionable.
Frontend tests fail for two reasons: the product is broken, or the test is lying. Your job is to maximize signal and minimize "test is lying".
| Unit | Fastest | Pure functions, reducers, validators, math, pathfinding, deterministic simulation | | Component | Medium | UI behavior with mocked IO (React Testing Library, Vue Testing Library) | | E2E | Slowest | Critical user flows across routing, storage, real bundling/runtime |
تخطيط وتنفيذ وتصحيح اختبارات الواجهة الأمامية: الوحدة/التكامل/E2E/visual/a11y. يُستخدم لأتمتة متصفح Playwright MCP، وVitest/Jest/RTL، وفرز الاختبار غير المستقر، وتثبيت CI، وألعاب Canvas/WebGL (Phaser) التي تحتاج إلى مدخلات حتمية بالإضافة إلى تأكيدات لقطة الشاشة/الحالة. عامل التفعيل: "اختبار"، "E2E"، "غير مستقر"، "الانحدار البصري"، "الكاتب المسرحي"، "اختبار اللعبة". المصدر: chongdashu/phaserjs-oakwoods.