Skip to content
TEA docs in plain text: llms-full.txt

TEA Knowledge Base Index

TEA’s knowledge base has 59 fragments of testing patterns and standards. Skill steps use tea-index.csv to find the fragments their loading rules select. See Knowledge Base System for how this is wired.

This page indexes every manifest row by its id and links to the fragment file. The Tier column records the manifest’s priority label; step-specific loading rules determine which fragments load (see Loading tiers).

Core patterns for test infrastructure and fixture composition.

FragmentTierDescriptionKey Topics
fixture-architecturecorePure function → Fixture → mergeTests composition with auto-cleanupTestability, composition, reusability
network-firstcoreIntercept-before-navigate pattern, HAR capture, deterministic waitsFlakiness prevention, network patterns
playwright-configextendedEnvironment switching, timeout standards, artifact outputsConfiguration, environments, CI
fixtures-compositionextendedmergeTests composition patterns for combining utilitiesFixture merging, utility composition

Used in: framework, test-design, automate red mode, automate expand mode, test-review


Patterns for test data generation, authentication, and setup.

FragmentTierDescriptionKey Topics
data-factoriescoreFactory patterns with faker, overrides, API seeding, cleanupTest data, factories, cleanup
auth-sessioncoreToken persistence, multi-user, API/browser authenticationAuth patterns, session management
email-authspecializedMagic link extraction, state preservation, negative flowsAuthentication, email testing

Used in: framework, automate red mode, automate expand mode, test-review


Network interception, error handling, and reliability patterns.

FragmentTierDescriptionKey Topics
network-recorderextendedHAR record/playback, CRUD detection for offline testingOffline testing, network replay
intercept-network-callextendedNetwork spy/stub, JSON parsing for UI testsMocking, interception, stubbing
error-handlingextendedScoped exception handling, retry validation, telemetry loggingError patterns, resilience
network-error-monitorextendedHTTP 4xx/5xx detection for UI testsError detection, monitoring

Used in: automate red mode, automate expand mode, test-review


CI/CD patterns, burn-in testing, and selective test execution.

FragmentTierDescriptionKey Topics
ci-burn-inextendedStaged jobs, shard orchestration, burn-in loopsCI/CD, flakiness detection
burn-inextendedSmart test selection, git diff for CI optimizationTest selection, performance
selective-testingextendedTag/grep usage, spec filters, diff-based runsTest filtering, optimization

Used in: framework CI phase, test-review


Test quality standards, test level selection, TDD patterns, and the generation-safety gate.

FragmentTierDescriptionKey Topics
test-qualitycoreExecution limits, isolation rules, green criteriaDoD, best practices, anti-patterns
test-levelscoreGuidelines for choosing unit, integration, or end-to-end coverageTest pyramid, level selection
test-prioritiescoreP0–P3 criteria, coverage targets, execution orderingPrioritization, risk-based testing
test-healing-patternscoreCommon failure patterns and automated fixesDebugging, healing, fixes
confidence-gatecore1-10 confidence score; below the threshold, record unknowns and ask for the missing factsAgent safety, generation, governance
evidence-integritycoreAssertions that can detect a failure, three-state diagnostics, probes that use the real client, outcome checks, verified framework behavior, and environment differencesFalsifiability, hollow green, diagnostics
component-tddextendedRed→green→refactor workflow, provider isolationTDD, component testing

Used in: test-design, automate red mode, automate expand mode, test-review, trace

confidence-gate covers selectors, endpoints, risk classification, fixtures, schemas, and data factories. A generation step records values it cannot establish from the repository as unknown.

evidence-integrity requires checks that can fail and diagnostics that report what they measured. It informs the review registry’s CRITICAL rows.


Risk assessment, governance, and gate decision frameworks.

FragmentTierDescriptionKey Topics
risk-governancecoreScoring matrix, category ownership, gate decision rulesRisk assessment, governance
probability-impactcoreProbability × impact scale for scoring matrixRisk scoring, impact analysis
nfr-criteriaextendedSecurity, performance, reliability, maintainability statusNFRs, compliance, enterprise
adr-quality-readiness-checklistextended8-category, 29-criteria framework for testability and NFR complianceQuality readiness, ADR, NFR checklist

Used in: test-design, nfr-assess, trace


Selector resilience, race condition debugging, and visual debugging.

FragmentTierDescriptionKey Topics
selector-resiliencecoreStable selector strategies and debuggingSelectors, locators, resilience
timing-debuggingextendedRace condition identification and deterministic fixesRace conditions, timing issues
visual-debuggingspecializedTrace viewer usage, artifact expectationsDebugging, trace viewer, artifacts

Used in: automate red mode, automate expand mode, test-review


Feature flag testing and pure API testing patterns.

FragmentTierDescriptionKey Topics
feature-flagsspecializedEnum management, targeting helpers, cleanup, checklistsFeature flags, toggles
api-testing-patternsspecializedPure API patterns without browserAPI testing, backend testing

Used in: test-design, automate red mode, automate expand mode


Contract testing fundamentals plus Pact.js Utils, Pact MCP, and broker operations.

FragmentTierDescriptionKey Topics
contract-testingspecializedRaw Pact patterns, publishing, verification, short-lived branch coordination, resilience, and FFI safetyContract testing, Pact fundamentals
pactjs-utils-overviewspecializedInstallation, flow decision tree, utility map, and branch coordinationpactjs-utils, CDCT/BDCT, integration strategy
pactjs-utils-mandatecoreThe binding rule when tea_use_pactjs_utils is true: substitution table, the relevance gate before scaffolding, banned patterns, pre-emit self-check, broker degradationStandards, contract testing, generation, review
pactjs-utils-zod-to-pactspecializedzodToPactMatchers for consumer-curated schemas, example precedence, Pact V3 matcher mapping, anti-patternspactjs-utils, zod, consumer schemas, matchers
pactjs-utils-consumer-helpersspecializedProvider-state helpers: createProviderState, toJsonMap; request/response callback helpers: setJsonBody, setJsonContentpactjs-utils, consumer testing, provider state
pactjs-utils-provider-verifierspecializedVerifier builders, scoped consumerBranch, provider revision metadata, branch classificationpactjs-utils, provider verification, CI
pactjs-utils-request-filterspecializedcreateRequestFilter, noOpRequestFilter auth/header patternspactjs-utils, request filter, auth injection
pact-mcpspecializedSmartBear MCP tools for provider states, review, can-i-deploy, matrixpact-mcp, broker interaction, pactflow
pact-consumer-framework-setupspecializedConsumer CDC scaffolding with deterministic tests, PR-only provider branch detection, and additive branch-aware can-i-deploypactjs-utils, consumer CDC, framework setup
pact-broker-webhooksspecializedPactFlow dispatch auth, exact provider target checkout, staleness monitoring, and PAT rotationpact broker, webhooks, CI operations, security
pact-consumer-diextendedDependency-injection pattern for Pact consumer tests using real client codepact, consumer, DI, contract accuracy

Used in: framework, test-design, automate red mode, automate expand mode, test-review, framework CI phase (conditioned by tea_use_pactjs_utils and tea_pact_mcp)

An expired PAT on the PactFlow webhook is the most common non-code cause of can-i-deploy timing out with There is no verified pact between .... pact-broker-webhooks carries the rotation runbook.


Delivery-side testing for asynchronous, eventually-consistent webhook flows using the @seontechnologies/playwright-utils webhook module.

FragmentTierDescriptionKey Topics
webhook-fundamentalscoreWhy webhook delivery is hard: async arrival, parallel pollution, opaque timeouts, cleanup drift. Polling, typed matchers, rich errors, startedAt isolationAsync, event-driven, eventually consistent
webhook-setupcoreFixture wiring for WireMock/MockServer/Mockoon providers, matched-only vs full-reset cleanup, the fullyParallel race fixFixtures, providers, setup
webhook-matcherscorematchField (dot-path exact), matchPartial (deep subset), matchPredicate (arbitrary fn), AND semantics, template factories, clone, withTimeout, withIntervalMatchers, templates, patterns
webhook-waitingcorewaitFor, waitForCount, getReceived, the drain pattern for sequential events, parallel worker safety via ID-scoped templatesPolling, querying, parallel safety
webhook-riskcoreWhen webhook tests are required, the P2×I3 default risk score, the test checklist, failure patterns and mitigationsRisk assessment, governance, TA checklist
webhook-timeout-errorextendedWebhookTimeoutError fields (templateName, timeoutMs, totalReceived, receivedWebhooks, matcherDetails, toJSON) for inspecting what arrived against what was expectedDebugging, errors
webhook-providersextendedWireMock (deleteById supported), MockServer (deleteById no-op), Mockoon (deleteById no-op, 100-entry limit), the custom WebhookProvider interfaceProviders, capability differences

Used in: framework, test-design, automate red mode, automate expand mode, test-review, framework CI phase, trace


Maestro device flows and guidance on selecting device-level tests. Loaded when test_stack_type is mobile or when the review set contains a Maestro flow (.yaml/.yml under maestro/ or .maestro/, or *.flow.yaml or *.flow.yml).

FragmentTierDescriptionKey Topics
mobile-test-strategyspecializedMobile test level framework, what belongs in a device flow, mobile risk categories, device matrix with a gate profile matching local, CI shape, no live third-party flag evaluation in the run pathLevels, risk, device matrix, permissions, lifecycle
maestro-flowsspecializedFlow structure, selector hierarchy, clearState isolation, synchronization without sleeps, subflow composition, command semantics that differ by platform, text: selectors as whole-element regex, taps that report COMPLETED without being handled, visible meaning inside the viewport, checking that the action caused a transitionMaestro, selectors, isolation, regex selectors, anti-patterns
mobile-ci-device-labspecializedBuild artifact selection including why a debug-variant development build does not solve it, dev-server manifest signing in non-interactive CI, one device profile across local and CI, native modules that degrade silently in a shell, deep links reachable through the shell’s routed URL form, emulator snapshot caching, repairing locally created AVDs, per-device identity for sharded runs, runner version pinning, artifact layout and failure diagnosisBuild artifact, emulator, caching, pinning, sharding, artifacts

Used in: framework, automate expand mode, automate red mode, test-design, test-review, framework CI phase (when test_stack_type is mobile or a Maestro flow is present)

Mobile loading rules exclude browser fragments such as network-first, playwright-config, intercept-network-call, and selector-resilience. Maestro flows use device selectors and synchronization.


CLI and MCP integration for AI-driven browser automation during test generation.

FragmentTierDescriptionKey Topics
playwright-clicoreToken-efficient CLI for AI coding agents: element refs, sessions, snapshots, browser automationCLI, browser, agent, automation, snapshot

Used in: automate red mode, automate expand mode, test-design, test-review, nfr-assess (when tea_browser_automation is cli or auto)


Patterns for @seontechnologies/playwright-utils.

FragmentTierDescriptionKey Topics
overviewcoreInstallation, design principles, fixture-based utility patterns for API and UIOverview, architecture, principles
playwright-utils-mandatecoreThe binding rule when tea_use_playwright_utils is true: substitution table, REQUIRED vs RECOMMENDED levels, banned patterns, pre-emit self-check, deviation protocolStandards, generation, review, governance
library-integration-mandatecoreThe general contract every library mandate instantiates: two gates (flag plus install), enforcement levels, deviation protocol, scope discipline, the flag-to-mandate registry, and the ten places a new library must be wiredStandards, governance, extensibility
api-requestcoreTyped HTTP client, schema validation, retry logic, operation-based overloadAPI calls, HTTP, OpenAPI, codegen
recurseextendedAsync polling for API responses, background jobs, eventual consistencyPolling, eventual consistency
logextendedReport logging and structured output for API and UI testsLogging, debugging, reporting
file-utilsextendedCSV/XLSX/PDF/ZIP validation for API exports and UI downloadsFile validation, exports

The package’s remaining fragments are indexed under the category that matches what they do: auth-session (Data & Setup); network-recorder, intercept-network-call, and network-error-monitor (Network & Reliability); burn-in (Test Execution & CI); fixtures-composition (Architecture & Fixtures, since mergeTests applies to all fixtures); and the seven webhook-* fragments (Webhook Testing).

Used in: framework, test-design, automate red mode, automate expand mode, test-review, framework CI phase (all gated on tea_use_playwright_utils: true)

playwright-utils-mandate loads first on every one of them. It decides how the other fragments are applied: generation follows its substitution table by default, and test-review reads its REQUIRED list as the firing predicate for registry rows M9 and L9. pactjs-utils-mandate plays the same role for Pact suites and row M10. Both instantiate library-integration-mandate, which holds the contract they share and the checklist for wiring in the next library.

Official Docs: https://seontechnologies.github.io/playwright-utils/


Location: skills/bmod-tea/knowledge/tea-index.csv

The 59 fragment files live beside the manifest in skills/bmod-tea/knowledge/.

Structure:

id,name,description,tags,tier,fragment_file
test-quality,Test Quality Definition of Done,"Execution limits, isolation rules, green criteria","quality,definition-of-done,tests",core,test-quality.md
risk-governance,Risk Governance,"Scoring matrix, category ownership, gate decision rules","risk,governance,gates",core,risk-governance.md

Columns:

  • id: unique kebab-case identifier used by skill steps; it can differ from the file stem
  • name: human-readable fragment name
  • description: what the fragment covers
  • tags: comma-separated search tags
  • tier: priority label (see below)
  • fragment_file: path relative to knowledge/

Step-file frontmatter declares knowledgeIndex: '{tea-knowledge}/tea-index.csv'. {tea-knowledge} resolves to the knowledge/ folder of the installed bmod-tea skill.

The index contains 59 fragments: 24 core, 19 extended, and 16 specialized. Skill steps select their fragments using explicit loading rules, including stack, runner, installed packages, and configuration. The framework and test-review steps define closed sets: a tier label alone cannot add a fragment.

Library branches use tea_use_playwright_utils, tea_use_pactjs_utils, and package checks. Pact broker tools depend on tea_pact_mcp and session tool availability. Browser branches use tea_browser_automation; mobile branches load Maestro guidance. See TEA Configuration.