Testing Blocks

Guide unit, browser, lint, and performance testing for AEM Edge Delivery projects.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/paolomoz/quasar --skill testing-blocks-paolomoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Testing Blocks
Source: https://github.com/paolomoz/quasar/tree/main/.skills/testing-blocks
Command: npx skills add https://github.com/paolomoz/quasar --skill testing-blocks-paolomoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the testing process for AEM Edge Delivery projects, ensuring code changes are robust, functional, and meet quality standards before being merged.

Core Features & Use Cases

  • Comprehensive Testing Guidance: Covers unit tests, browser tests, linting, and performance validation.
  • Value-Driven Approach: Prioritizes tests based on their value versus maintenance cost.
  • Workflow Integration: Seamlessly integrates with the building blocks skill for automated testing post-implementation.
  • Use Case: After implementing a new block, use this skill to run unit tests for any new utility functions, perform manual browser validation with screenshots, and ensure linting passes, all before creating a pull request.

Quick Start

Run the testing blocks skill to validate your recent code changes.

Frequently Asked Questions about Testing Blocks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up testing for AEM Edge Delivery projects?

Testing AEM Edge Delivery projects involves unit testing logic-heavy utilities with vitest, browser testing for DOM validation with playwright, linting for code style, and running performance validation via GitHub checks before merging changes.

What's the best way to run unit tests for AEM blocks?

The best way to unit test AEM blocks is targeting logic-heavy utility functions with vitest, applying a value-versus-cost philosophy to prioritize tests that provide the most validation value relative to their maintenance cost.

Can I use Playwright for browser testing in AEM Edge Delivery?

Playwright is used for browser testing in AEM Edge Delivery to perform visual and DOM validation. This ensures that code changes render correctly and meet functional standards before being merged into the main branch.

Do I need linting and performance checks before deploying AEM code?

Linting and performance checks are required before deploying AEM code to ensure code style consistency and validate performance. Running these checks via GitHub helps maintain robust code quality before changes are merged.

When should I prioritize tests in my AEM testing workflow?

You should prioritize tests in your AEM testing workflow using a value-driven approach. Evaluate the maintenance cost of each test against the validation value it provides, focusing on logic-heavy utilities and critical visual DOM validation.