name: 'step-01-preflight-and-context' description: 'Determine mode, verify framework, and load context and knowledge' outputFile: '{test_artifacts}/automation-summary.md' nextStepFile: './step-02-identify-targets.md'
Determine execution mode, verify framework readiness, and load the necessary artifacts and knowledge fragments.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
Ensure a framework exists:
playwright.config.ts or cypress.config.tspackage.json includes test dependenciesIf missing: HALT with message "Run framework workflow first."
{test_dir}{config_source} read tea_use_playwright_utils{config_source} read tea_browser_automationUse {knowledgeIndex} and load only what is required.
Core (always load):
test-levels-framework.mdtest-priorities-matrix.mddata-factories.mdselective-testing.mdci-burn-in.mdtest-quality.mdPlaywright Utils (if enabled):
overview.md, api-request.md, network-recorder.md, auth-session.md, intercept-network-call.md, recurse.md, log.md, file-utils.md, burn-in.md, network-error-monitor.md, fixtures-composition.mdTraditional Patterns (if Playwright Utils disabled):
fixture-architecture.mdnetwork-first.mdHealing (if auto-heal enabled):
test-healing-patterns.mdselector-resilience.mdtiming-debugging.mdPlaywright CLI (if tea_browser_automation is "cli" or "auto"):
playwright-cli.mdMCP Patterns (if tea_browser_automation is "mcp" or "auto"):
Summarize loaded artifacts, framework, and knowledge fragments, then proceed.
Save this step's accumulated work to {outputFile}.
If {outputFile} does not exist (first save), create it with YAML frontmatter:
---
stepsCompleted: ['step-01-preflight-and-context']
lastStep: 'step-01-preflight-and-context'
lastSaved: '{date}'
---
Then write this step's output below the frontmatter.
{outputFile} already exists, update:
'step-01-preflight-and-context' to stepsCompleted array (only if not already present)lastStep: 'step-01-preflight-and-context'lastSaved: '{date}'Load next step: {nextStepFile}