Graph Page Testing

Automates validation of PropertyIQ graphs data against centralized metric configurations.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/th309/Realestate --skill graph-page-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Graph Page Testing
Source: https://github.com/th309/Realestate/tree/main/.agent/skills/graph_page_testing
Command: npx skills add https://github.com/th309/Realestate --skill graph-page-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node-fetch, and includes scripts (resource) components.

What problem does it solve?

This Skill helps QA teams and developers ensure the PropertyIQ graphs page is aligned with centralized metric definitions, validates time-series data endpoints, and analyzes component behavior to maintain data integrity.

Core Features & Use Cases

  • Alignment Verification: Checks if the graphs page uses the same metric definitions and order as the map sidebar.
  • Data Fetching Validation: Tests the backend API endpoints for time-series data to ensure availability and correct format.
  • Component Analysis: Reviews React components for correct state management and rendering logic.
  • Use Case: When a metric is added to the central config, this skill confirms the graphs page pulls the updated metrics in the correct order and displays data accurately.

Quick Start

Run the test script to validate time-series endpoints against a local backend:

  • npx tsx .agent/skills/graph_page_testing/scripts/run-tests.ts
  • Ensure API_URL points to your backend (e.g., http://localhost:3000)

Frequently Asked Questions about Graph Page Testing

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

FAQPage Schema
How do I validate time-series data endpoints for graph metrics?

Time-series data validation checks API endpoints for correct format and availability before rendering. Run the test script with `npx tsx .agent/skills/graph_page_testing/scripts/run-tests.ts` against your backend to assert that graph data matches expected structure and scope (national, state, metro, county, zip).

Can I test if my graphs page uses the correct metric definitions from the central config?

Yes. This Skill compares metric definitions and order between the graphs page and centralized configuration to ensure alignment. It validates that when a metric is added to the config, the graphs page pulls the updated metric in the correct order.

What's required to run graph data validation on a local backend?

You need a running Node.js backend API, the TSX runner, and node-fetch dependency. Point API_URL to your backend (e.g., http://localhost:3000) and execute the test script to fetch and validate time-series data structure.

How do I ensure data integrity across development, staging, and production graph environments?

This Skill automates validation across all three environments by testing API endpoints, data formats, and component rendering for each metric scope. Run the test script against each environment's API endpoint to verify consistency.

Why would graph metrics fail to render correctly after a central config update?

Misalignment between the graphs page and centralized metric definitions causes rendering failures. This Skill detects such misalignment by validating that the React component state management and metric order match the updated central configuration.

Can I validate API responses for multiple geographic scopes in one test run?

Yes. The Skill tests time-series data endpoints across all scopes—national, state, metro, county, and zip—in a single execution, verifying API availability and data format correctness for each geographic level.