stepsCompleted: [] lastStep: “ lastSaved: “ workflowType: ‘testarch-atdd’ storyId: ‘{story_id}’ storyKey: ‘{story_key}’ storyFile: ‘{story_file}’ atddChecklistPath: ‘{test_artifacts}/atdd-checklist-{story_key}.md’ generatedTestFiles:
Date: {date} Author: {user_name} Primary Test Level: {primary_level}
{Brief 2-3 sentence summary of the user story}
As a {user_role} I want {feature_description} So that {business_value}
{List all testable acceptance criteria from the story}
{story_id}{story_key}{story_file}{test_artifacts}/atdd-checklist-{story_key}.md{e2e_test_file_path}, {api_test_file_path}, {component_test_file_path}If this story came from BMM create-story, mirror these artifact paths into the story’s Dev Notes so dev-story can discover and activate the red-phase scaffolds.
File: {e2e_test_file_path} ({line_count} lines)
{List each E2E test with its current status and expected failure reason}
File: {api_test_file_path} ({line_count} lines)
{List each API test with its current status and expected failure reason}
File: {component_test_file_path} ({line_count} lines)
{List each component test with its current status and expected failure reason}
{List all data factory files created with their exports}
File: tests/support/factories/{entity}.factory.ts
Exports:
create{Entity}(overrides?) - Create single entity with optional overridescreate{Entity}s(count) - Create array of entitiesExample Usage:
const user = createUser({ email: 'specific@example.com' });
const users = createUsers(5); // Generate 5 random users
{List all test fixture files created with their fixture names and descriptions}
File: tests/support/fixtures/{feature}.fixture.ts
Fixtures:
{fixtureName} - {description_of_what_fixture_provides}
Example Usage:
import { test } from './fixtures/{feature}.fixture';
test('should do something', async ({ {fixtureName} }) => {
// {fixtureName} is ready to use with auto-cleanup
});
{Document external services that need mocking and their requirements}
Endpoint: {HTTP_METHOD} {endpoint_url}
Success Response:
{
{success_response_example}
}
Failure Response:
{
{failure_response_example}
}
Notes: {any_special_mock_requirements}
{List all data-testid attributes required in UI implementation for test stability}
{data-testid-name} - {description_of_element}{data-testid-name} - {description_of_element}Implementation Example:
<button data-testid="login-button">Log In</button>
<input data-testid="email-input" type="email" />
<div data-testid="error-message">{errorText}</div>
{Map each scaffolded test to concrete implementation tasks that will make it pass}
File: {test_file_path}
Tasks to make this test pass:
{test_execution_command}Estimated Effort: {effort_estimate} hours
File: {test_file_path}
Tasks to make this test pass:
{test_execution_command}Estimated Effort: {effort_estimate} hours
# Run all activated tests for this story
{test_command_all}
# Run specific test file
{test_command_specific_file}
# Run tests in headed mode (see browser)
{test_command_headed}
# Debug specific test
{test_command_debug}
# Run tests with coverage
{test_command_coverage}
TEA Agent Responsibilities:
test.skip()Verification:
test.skip()DEV Agent Responsibilities:
test.skip() for that test and confirm it fails firstKey Principles:
Progress Tracking:
DEV Agent Responsibilities:
Key Principles:
Completion:
Dev Notes / ATDD Artifacts section when a writable story file is availabletest.skip() for the current task, then confirm it fails before implementingThis ATDD workflow consulted the following knowledge fragments:
test.extend()@faker-js/faker for random test data generation with overrides supportSee tea-index.csv for complete knowledge fragment mapping.
Command: {test_command_all} (or a narrower command after removing test.skip() for the current task)
Results:
{paste_test_run_output_showing_scaffolds_skipped_or_activated_tests_failing}
Summary:
Expected Failure Messages: {list_expected_skip_or_failure_states_for_each_test}
{Any additional notes, context, or special considerations for this story}
Questions or Issues?
./bmm/docs/tea-README.md for workflow documentation./resources/knowledge for testing best practicesGenerated by BMad TEA Agent - {date}