Skip to content

yashwant-das/test-playwright-protocol

Repository files navigation

Smart Playwright Protocol (SPP)

SPP Release Playwright TypeScript ESLint NodeJS

Smart Playwright Protocol (SPP) v2.1.1

AI-assisted Playwright automation using a structured, protocol-driven workflow. This framework keeps human-AI collaboration explicit, reviewable, and repeatable.

Protocol Workflow

The framework enforces a single, disciplined workflow for all automation tasks:

Select
  ↓
Understand
  ↓
Explore
  ↓
Plan
  ↓
Implement
  ↓
Verify
  ├─ PASS → DONE
  └─ FAIL → BLOCKED → Recover → Verify

Quick Start

Get started and complete your first task in minutes.

1. Installation

Clone the repository and install dependencies:

npm install
npx playwright install

2. Environment Configuration

Copy the example environment file and update it with your application's settings:

cp .env.example .env

The BASE_URL in .env will be used as the target for all tests.

3. Configure MCP Servers (Recommended)

This framework supports MCP servers to let AI agents explore the browser and manage tasks. While not mandatory, they significantly improve the AI implementation experience. See docs/CLI.md for setup instructions.

4. Create Your First Task

Launch the interactive wizard to generate a new task file:

npm run task create

5. Activate the Task

Select and move the task to IN_PROGRESS. This automatically copies an AI handoff prompt to your clipboard:

npm run task next

6. Hand Off to AI

Paste the copied prompt into your AI assistant. The assistant will:

  • Read docs/PROTOCOL.md.
  • Follow the SPP workflow.
  • Implement Page Objects and tests.

7. Verify Completion

Once the AI finishes, run the verification gate:

npm run task T-001

Documentation

File Purpose
docs/PROTOCOL.md Architectural source of truth: workflow, states, and rules.
docs/CLI.md Command reference: tools, menu, board, and troubleshooting.
docs/ROADMAP.md Future enhancements and planned improvements.
AGENTS.md Lightweight instructions for AI assistants.

About

Smart Playwright Protocol (SPP) — a lightweight, protocol-driven workflow for AI-assisted Playwright automation using Markdown tasks, verification gates, and Page Object best practices.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors