Generate TDD test from user story
generate_tdd_from_storyConvert a user story into a Playwright TypeScript test. Optionally open a draft GitHub PR for review.
Instructions
Given a user story id (from the accepted inventory), ask Claude to write a full Playwright TypeScript test. Inserts a qa_stories row (source=test_gen_from_story) with approval_status driven by automation_mode. Optionally opens a draft GitHub PR. Returns { qaStoryId, prUrl, approvalStatus, needsHumanReview }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project id | |
| storyNodeId | Yes | User story id slug from the accepted inventory | |
| automationMode | No | Gate mode for the generated test (default: review) | |
| baseUrl | No | Override the app base URL | |
| openPr | No | Open a draft GitHub PR (default: true) |