aa-conversion-funnel-a…
Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have…
Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.
$ npx -y skills add adobe/skills --skill testing-blocks --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/testing-blocksContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.
name: testing-blocks description: "Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how." license: Apache-2.0 metadata: version: "2.0.1"
This skill guides you through testing code changes in AEM Edge Delivery Services projects. Testing follows a value-versus-cost philosophy: create and maintain tests when the value they bring exceeds the cost of creation and maintenance.
**CRITICAL: Browser validation is MANDATORY. You cannot complete this skill without providing proof of functional testing in a real browser environment.**
Use this skill:
This skill is typically invoked by the **building-blocks** skill during Step 5 (Test Implementation).
Track your progress:
**Run linting first to catch code quality issues:**
npm run lint
**If linting fails:**
npm run lint:fix
**Manually fix remaining issues** that auto-fix couldn't handle.
**Success criteria:**
**Mark complete when:** `npm run lint` passes with no errors
---
**CRITICAL: You must test in a real browser and provide proof.**
Load test content URL(s) in browser and validate:
**Choose the method that makes most sense given your available tools:**
**Option 1: Browser/Playwright MCP (Recommended)**
If you have MCP browser or Playwright tools available, use them directly:
**Option 2: Playwright automation**
Write one (or more) temporary test scripts to validate functionality with playwright and capture snapshots/screenshots for inspection and validation.
// test-my-block.js (temporary - don't commit)
import { chromium } from 'playwright';
async function test() {
const browser = await chromium.launch({ headless: false });
const page = await browser.newPage();
// Navigate and wait for block
await page.goto('http://localhost:3000/path/to/test');
await page.waitForSelector('.my-block');
// Inspect accessibility tree (useful for validating structure)
const accessibilityTree = await page.accessibility.snapshot();
console.log('Accessibility tree:', JSON.stringify(accessibilityTree, null, 2));
// Optionally save to file for easier analysis
await require('fs').promises.writeFile(
'accessibility-tree.json',
JSON.stringify(accessibilityTree, null, 2)
);
// Test viewports and take screenshots
await page.setViewportSize({ width: 375, height: 667 });
await page.screenshot({ path: 'mobile.png', fullPage: true });
await page.locator('.my-block').screenshot({ path: 'mobile-block.png' });
await page.setViewportSize({ width: 768, height: 1024 });
await page.screenshot({ path: 'tablet.png', fullPage: true });
await page.locator('.my-block').screenshot({ path: 'tablet-block.png' });
await page.setViewportSize({ width: 1200, height: 800 });
await page.screenshot({ path: 'desktop.png', fullPage: true });
await page.locator('.my-block').screenshot({ path: 'desktop-block.png' });
// Check for console errors
page.on('console', msg => console.log('Browser:', msg.text()));
await browser.close();
}
test().catch(console.error);Run: `node test-my-block.js` then delete the script and analyze the resulting artifacts.
**Option 3: Manual browser testing**
Use a standard web browser with dev tools: 1. Navigate to test content: `http://localhost:3000/path/to/test/content` 2. Use browser dev tools responsive mode to test viewports:
3. Check console for errors at each viewport 4. Take screenshots as proof (browser screenshot tool or dev tools)
**If acceptance criteria provided (from CDD Step 2):**
**If design/mockup screenshots provided:**
**You must provide:**
**Success criteria:** -
Repo: adobe/skills
Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have…
Generates a concise, executive-ready performance summary covering key metrics, trends, and…
Produces a compact KPI digest showing how key metrics changed over a period and what's…
Compares the performance of two or more audience segments across key metrics side by side.…
Identifies which items (pages, campaigns, products, channels, regions) had the biggest…
Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user…