@focusconsulting/auto-a11y
Version:
A powerful tool that combines AI with accessibility-first element selection for Playwright tests
19 lines (18 loc) • 730 B
TypeScript
import { z } from "zod";
/**
* Zod schema for the locator query response from AI
*/
export declare const LocatorQuerySchema: z.ZodObject<{
query: z.ZodEnum<["getByRole", "getByLabelText", "getByPlaceholderText", "getByAltText", "getByText", "getByTestId"]>;
params: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
query: "getByRole" | "getByLabelText" | "getByPlaceholderText" | "getByAltText" | "getByText" | "getByTestId";
params: string[];
}, {
query: "getByRole" | "getByLabelText" | "getByPlaceholderText" | "getByAltText" | "getByText" | "getByTestId";
params: string[];
}>;
/**
* Type for the locator query response
*/
export type LocatorQuery = z.infer<typeof LocatorQuerySchema>;