Test Automation
Scaffolds a test automation framework using Playwright for browser testing. Includes a page object model, test fixtures, data factories, example specs, and CI configuration. Produces a runnable test suite with structured reporting, parallel execution support, and a clean separation between test infrastructure and test logic.
| Name | test-automation |
| Version | 0.1.0 |
| Category | qa |
| License | Apache-2.0 |
| Persona | qa, engineering |
| Tags | testing, qa, automation, playwright, typescript |
| Source | templates/test-automation |
Render it
Three front doors, one catalog. Pick whichever suits the caller.
# CLI
npx @nanohype/sdk render test-automation --out ./my-app
# SDK
import { LocalSource, renderTemplate } from "@nanohype/sdk";
const result = await renderTemplate(source, "test-automation", variables);
# MCP — from an agent
get_template({ name: "test-automation" })Prerequisites
| Tool | Version | Why |
|---|---|---|
node | >=22 | Node.js runtime for TypeScript execution |
Variables
Required
ProjectNamestring- Kebab-case project name, used in package.json and directory Must be lowercase kebab-case starting with a letter.
Optional
Frameworkstring — defaults toplaywright- Test framework to use (e.g., playwright, cypress, selenium)
Languagestring — defaults totypescript- Programming language for test code
IncludeCibool — defaults totrue- Include GitHub Actions CI workflow for automated test runs
What it produces
10 files. Placeholder names such as __APP_NAME__ are what the renderer substitutes into.
.github/workflows/test.yml
.gitignore
biome.json
package.json
playwright.config.ts
src/factories/user.factory.ts
src/fixtures/base.ts
src/pages/login.page.ts
src/specs/example.spec.ts
tsconfig.jsonComposes with
- Pairs with
test-plan - Pairs with
acceptance-criteria - Pairs with
ts-service - Pairs with
next-app - Pairs with
go-service - Nests inside
monorepo