test_export_playwright
Generate a saved test as a Playwright or Jest TypeScript spec, embedding sub-flows as functions. Optionally write the file to exports/.spec.ts.
Instructions
Generates the code of a saved test as a TypeScript spec (.spec.ts), in Playwright (@playwright/test) or Jest (jest-environment-playwright) format, with sub-flows embedded as functions. Returns the content; with write: true it saves the file into exports/.spec.ts like the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the saved test | |
| write | No | Write the file into exports/ (default false) | |
| format | No | Format of the generated spec (default "playwright") |