UNPKG

@focusconsulting/auto-a11y

Version:

A powerful tool that combines AI with accessibility-first element selection for Playwright tests

19 lines (18 loc) 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LocatorQuerySchema = void 0; const zod_1 = require("zod"); /** * Zod schema for the locator query response from AI */ exports.LocatorQuerySchema = zod_1.z.object({ query: zod_1.z.enum([ "getByRole", "getByLabelText", "getByPlaceholderText", "getByAltText", "getByText", "getByTestId" ]), params: zod_1.z.array(zod_1.z.string()) });