find-test-content

Search AEM Edge Delivery pages for blocks and variants via query-index.

Updated Mar 27, 2025
One-click install
npx skills add https://github.com/jfoxx/residentportal --skill find-test-content-jfoxx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: find-test-content
Source: https://github.com/jfoxx/residentportal/tree/main/.skills/find-test-content
Command: npx skills add https://github.com/jfoxx/residentportal --skill find-test-content-jfoxx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill helps developers quickly locate existing content pages that utilize a specific block, streamlining the process of finding test cases during development.

Core Features & Use Cases

  • Block Search: Identifies all pages containing a specified block.
  • Variant Detection: Reports any variants of the block found on each page.
  • Use Case: When modifying the "cards" block, use this skill to find all pages that already use it, allowing you to test your changes on relevant existing content.

Quick Start

Search for all pages containing the 'hero' block on your local development server.

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 existing pages using a specific block in AEM Edge Delivery Services?

To find existing pages using a specific block in AEM Edge Delivery Services, search your local development server's query-index to identify URLs with block occurrences and variants.

Can I detect block variants when searching for test content during development?

Yes, you can detect block variants when searching for test content. The search reports any variants of the block found on each page, helping you understand different block implementations across your AEM site.

Do I need a running dev server to search for content pages containing blocks?

Yes, a running dev server with an accessible query-index is required to search for content pages containing blocks. The search queries this index to locate URLs with block occurrences and variants.

What's the best way to locate test cases for a block I'm modifying?

The best way to locate test cases for a modified block is to search for all pages already using that block. This allows you to test your changes on relevant existing content across your site.

Does the block search work with all block types in AEM Edge Delivery Services?

The block search works with any specified block type in AEM Edge Delivery Services. You can search for blocks like 'hero' or 'cards' to find all pages containing those blocks and their variants.

Why should I find existing content pages before testing block modifications?

Finding existing content pages before testing block modifications streamlines the process by allowing you to test against real content. This ensures your changes work correctly with actual page implementations and variants.