find-test-content

Locate pages containing a specified content block by class and report instance counts and variants.

1|Updated Oct 7, 2024
One-click install
npx skills add https://github.com/valithedge/etisalatedge --skill find-test-content-valithedge
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-test-content
Source: https://github.com/valithedge/etisalatedge/tree/main/.agents/skills/find-test-content
Command: npx skills add https://github.com/valithedge/etisalatedge --skill find-test-content-valithedge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jsdom, and includes scripts (resource) components.

What problem does it solve?

This Skill helps developers identify existing content pages that contain a specific content block, enabling targeted testing and validation in AEM Edge Delivery workflows.

Core Features & Use Cases

  • Scan the site's query-index to locate pages, detect instances of a target block by CSS class, and aggregate variant information for reporting.
  • Provide a structured list of URLs with the number of block instances and discovered variants to support test content mapping across environments (local, preview, and live).
  • Handle batching and concurrent requests, with clear guidance on indexing status and error states.

Quick Start

Run the find-block-content script with the target block name to locate pages containing that block.

Frequently Asked Questions about find-test-content

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

FAQPage Schema
How do I find pages containing a specific block in AEM Edge Delivery?

To find test content in AEM Edge Delivery, this Skill retrieves query-index data, fetches pages, parses HTML to detect target block classes, and outputs matching paths with instance counts and variants.

What is the best way to map block variants across pages for QA testing?

Mapping block variants across pages for QA testing is done by scanning the query-index and parsing HTML to aggregate variant information, providing a structured list of URLs with discovered variants and instance counts.

Can I use this to locate test content across local, preview, and live environments?

Yes, you can locate test content across local, preview, and live environments. The Skill supports test content mapping by handling batching and concurrent requests to fetch pages and detect block elements.

Does finding test content require a specific query-index setup?

Finding test content requires an accessible query-index to locate pages. The Skill depends on this data source to map URLs before fetching and parsing HTML to detect target block classes and variants.

What limitations exist when scanning query-index data for block instances?

Limitations when scanning query-index data include handling error states and indexing status delays. The Skill provides clear guidance on these issues while batching concurrent requests to parse HTML for block instances.