@focusconsulting/auto-a11y
Version:
A powerful tool that combines AI with accessibility-first element selection for Playwright tests
16 lines (15 loc) • 767 B
TypeScript
/**
* Creates a prompt for AI to determine the most appropriate Testing Library query
* @param description Human description of the element to find
* @param bodyContent HTML content of the page
* @returns Formatted prompt string
*/
export declare function createLocatorPrompt(description: string, bodyContent: string): string;
/**
* Creates a simplified prompt for AI to determine the most appropriate Testing Library query
* @param description Human description of the element to find
* @param simplifiedHTML Simplified HTML content of the page
* @returns Formatted prompt string
*/
export declare function createSimpleLocatorPrompt(description: string, simplifiedHTML: string): string;
export { LocatorQuerySchema, LocatorQuery } from "./locator-schema";