export declare const AGENT_SECTION_HEADING = "## End-to-end tests (WebdriverIO v10)"; /** * The project-rules block from `website/docs/AIAgents.md`, plus a line that * points at the installed skill. Kept here so `npm init wdio` can write it * without the website package. */ export declare const AGENT_SECTION = "## End-to-end tests (WebdriverIO v10)\n\n- Docs: https://webdriver.io/llms.txt - fetch the relevant page as Markdown (append `.md`) before using an API you are not sure about. Do not use APIs from WebdriverIO v8 or older.\n- Config: `wdio.conf.ts`. Specs: `test/specs/**/*.e2e.ts`. Page objects: `test/pageobjects/`.\n- Run all tests: `npx wdio run wdio.conf.ts`\n- Run a single spec: `npx wdio run wdio.conf.ts --spec test/specs/login.e2e.ts`\n- Tests are async: always `await` commands, e.g. `await $('button').click()`. Never use the removed sync mode.\n- Prefer user-facing selectors: accessibility name or text (`$('aria/Submit')`, `$('button=Submit')`), then `data-testid`. Avoid XPath and generated CSS classes.\n- Rely on auto-waiting and `expect-webdriverio` matchers (`await expect($('h1')).toHaveText('Welcome')`) instead of `browser.pause()`.\n- To explore the app or verify a selector, use the `wdio-mcp` MCP server.\n- To drive the app from the shell, follow `.agents/skills/wdio-session/SKILL.md` (`npx wdio session`).\n- When a test fails, read the DevTools trace in `test-results/` (see `transcript.md`) before changing code.\n"; /** * The skill ships in this repo at `@wdio/session` and, for the published * `create-wdio` package, as `templates/wdio-session/SKILL.md`. */ export declare function readSessionSkill(start?: string): string; /** * Write the skill, the AGENTS.md section and `.wdio/session/` in `.gitignore`. */ export declare function writeAgentSupport(root: string): void; //# sourceMappingURL=agent.d.ts.map