testing-blocks
Installation
SKILL.md
Testing Blocks
Validate code changes and write maintainable tests in AEM Edge Delivery Services projects.
Related Skills
- content-driven-development: test content created during CDD is what you validate against
- aem-cli: running
aem up(ports in git worktrees, serving./content/, cleaning up stale./content/files that shadow remote.aem.pageupdates)
Testing Workflow
- Step 1: Run linting and fix issues
- Step 2: Validate in a browser (MANDATORY when validating a code change)
- Step 3: Decide which tests to commit, and write them
- Step 4: Run the project's tests
Step 2: Browser Validation
Exercise the block in a real browser on the test content URL(s): every variant, mobile, tablet and desktop widths (e.g. 375px, 768px, 1200px), and every interaction. Use whatever tooling you have: browser/Playwright MCP tools, a throwaway Playwright script (delete it afterwards), or a manual browser.