Testing Blocks
OfficialAutomate AEM block testing, ensure quality.
Software Engineering#unit tests#testing#quality assurance#linting#performance#Playwright#AEM#browser tests
Authoradobe
Version1.0.0
Installs0
System Documentation
What problem does it solves? Manual testing of AEM blocks is time-consuming and prone to human error, leading to regressions and quality issues. This Skill provides a comprehensive testing framework, balancing automated "keeper" tests with efficient "throwaway" browser validation, ensuring high-quality code with less effort.
Core Features & Use Cases
- Unit Testing: Guides creation of fast, isolated tests for logic-heavy utilities and data processing.
- Browser Testing: Facilitates throwaway browser tests (Playwright/Puppeteer) for visual validation, DOM structure, and responsive behavior.
- Quality Checks: Integrates linting, performance validation (via GitHub checks), and a complete pre-PR checklist.
- Use Case: After modifying a "carousel" block, use this Skill to run unit tests on its logic, perform browser tests to capture screenshots of its visual behavior across devices, and ensure all linting and performance checks pass before creating a pull request.
Quick Start
Test the "hero" block, including unit tests for its utility functions and browser tests for visual validation across mobile and desktop.
Dependency Matrix
Required Modules
nodevitestplaywrightjsdom
Components
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Testing Blocks Download link: https://github.com/adobe/helix-website/archive/main.zip#testing-blocks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.