Skip to content

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.

Nametest-automation
Version0.1.0
Categoryqa
LicenseApache-2.0
Personaqa, engineering
Tagstesting, qa, automation, playwright, typescript
Sourcetemplates/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

ToolVersionWhy
node>=22Node.js runtime for TypeScript execution

Variables

Required

ProjectName string
Kebab-case project name, used in package.json and directory Must be lowercase kebab-case starting with a letter.

Optional

Framework string — defaults to playwright
Test framework to use (e.g., playwright, cypress, selenium)
Language string — defaults to typescript
Programming language for test code
IncludeCi bool — defaults to true
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.json

Composes with