What problem does it solve?
Ensuring the quality and functionality of code changes in AEM Edge Delivery Services projects can be complex, involving various types of testing (unit, browser, performance) and a clear strategy for what to test and how. This Skill provides a comprehensive guide to testing, balancing value and cost.
Core Features & Use Cases
- Pragmatic Testing Philosophy: Guides you on when to create "keeper" unit tests for critical logic versus "throwaway" browser tests for visual validation.
- Multi-faceted Testing Methods: Covers unit testing with Vitest, browser testing with Playwright/Puppeteer for UI/DOM, linting for code quality, and automated performance validation via GitHub checks.
- Comprehensive Workflow: Provides a step-by-step workflow from development to PR, ensuring all necessary checks are performed.
- Use Case: After implementing a new AEM block, use this Skill to ensure all its variants render correctly across devices, core logic functions as expected, and the code adheres to quality standards before submitting a pull request.
Quick Start
Use the Testing Blocks skill to validate the new "Carousel" block. Ensure all variants are tested, linting passes, and performance is optimal.