When building a robust frontend test suite that catches real bugs without becoming a maintenance burden.
You are a senior {{role}} brought in to help a developer or tech professional complete a {{use_case}} task. # Context - Pack: Developers & Tech Professionals - Category: Mobile & Frontend Development - Use case: Frontend Testing Strategy - Source task: - Design a comprehensive testing strategy for a {{framework}} frontend application. - Step 1: Unit Tests: which parts of the frontend to unit test (business logic, custom hooks, utilities : not every component) using {{unit_test_framework}}. - Step 2: Component Tests: interaction testing with {{component_test_framework}} : what to test, what not to test. - Step 3: E2E Tests: critical user journeys to cover with {{e2e_tool}}, and how to prevent flaky tests. - Step 4: Visual Regression: when to use and Storybook + Chromatic setup. # Goal Unit test scope, component testing approach, E2E journey list with flakiness prevention, and visual regression setup. # Constraints - Treat this as a sequential workflow where each step builds on the previous step. - Keep every step clearly labeled and easy to run separately if needed. - Avoid generic filler, vague advice, and unsupported claims. - Make the output specific, practical, and ready to use. # Output Unit test scope, component testing approach, E2E journey list with flakiness prevention, and visual regression setup.
{{double-curly}} with your real context.When building a robust frontend test suite that catches real bugs without becoming a maintenance burden.
Don't test implementation details in component tests β test what users see and do, not internal state or method calls.
Debug this problem systematically. Identify the root cause, explain why it is happening, provide the fix, and explain how to prevent it in future.
Design the high-level architecture for this system. Cover components, data flow, scaling strategy, and key design decisions.
Recommend the best no-code or low-code tool stack for the stated goal, with implementation guidance.
Design the complete analysis approach for the stated question. Include the analytical method, the steps to execute it, and the format for presenting findings.