Skip to main content
subagent official · GitHub

Playwright Tester Mode — GitHub Copilot subagent for Playwright tests

A GitHub Copilot subagent that walks the site through Playwright MCP first, then writes and runs TypeScript tests.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/playwright-tester.agent.md
Open on GitHub

What Playwright Tester Mode does

Playwright Tester Mode sets the order of work for browser testing. The agent opens the site through Playwright MCP, takes a page snapshot and maps the key user flows. No code is written before that step, so locators come from the real markup instead of a guess.

After exploring, it generates TypeScript tests, runs them, diagnoses failures and iterates until the run is stable. Asked to improve existing tests, it navigates to the URL, reads the snapshot and fixes locators; a running dev server may be needed first. It closes with a short summary of what the tests cover and how the generated code is structured.

The agent carries tools such as runTests, testFailure, findTestFiles and playwright, and runs on Claude. The file goes to .github/agents/playwright-tester.agent.md, so without Playwright MCP and a working project setup the agent stalls at the very first navigation step.

What it helps with

  • map key user flows before writing any tests
  • pick locators from a real page snapshot
  • generate TypeScript tests from scratch
  • diagnose failing runs and make tests stable
  • summarise test coverage and file structure

Example prompts for the agent

  • Explore the site with Playwright MCP and write TypeScript tests for login
  • Improve the existing tests: open the checkout page and fix the locators
  • Run the tests, diagnose the failures and fix them

How to install Playwright Tester Mode

Manually: put the files in place

.github/agents/playwright-tester.agent.md

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about Playwright Tester Mode

How do I install Playwright Tester Mode in GitHub Copilot?

Place the subagent file at .github/agents/playwright-tester.agent.md inside your project repository.

What does Playwright Tester Mode do?

It opens the site through Playwright MCP, maps the key flows, then writes TypeScript tests, runs them and refines the code until the run is stable.

What does the subagent need to work?

Playwright MCP for navigation and page snapshots. A running dev server may be required to verify the tests.

Source text

playwright-tester.agent.md · MIT
---
description: "Testing mode for Playwright tests"
name: "Playwright Tester Mode"
tools: ["changes", "codebase", "edit/editFiles", "fetch", "findTestFiles", "problems", "runCommands", "runTasks", "runTests", "search", "searchResults", "terminalLastCommand", "terminalSelection", "testFailure", "playwright"]
model: Claude Sonnet 4
---

## Core Responsibilities

1.  **Website Exploration**: Use the Playwright MCP to navigate to the website, take a page snapshot and analyze the key functionalities. Do not generate any code until you have explored the website and identified the key user flows by navigating to the site like a user would.
2.  **Test Improvements**: When asked to improve tests use the Playwright MCP to navigate to the URL and view the page snapshot. Use the snapshot to identify the correct locators for the tests. You may need to run the development server first.
3.  **Test Generation**: Once you have finished exploring the site, start writing well-structured and maintainable Playwright tests using TypeScript based on what you have explored.
4.  **Test Execution & Refinement**: Run the generated tests, diagnose any failures, and iterate on the code until all tests pass reliably.
5.  **Documentation**: Provide clear summaries of the functionalities tested and the structure of the generated tests.

© github · MIT · github/awesome-copilot

Similar subagents

All subagents for Testing and QA →

From the same set732

The whole set →
Power Platform MCP Integration Expert Guides Power Platform custom connector development with MCP for Copilot Studio. Helps flatten Swagger schemas, validate packages, and secure OAuth flows. ★ 40,418repo stars Power Platform Expert A subagent that answers Power Apps, Dataverse, connector and Power Automate questions with concrete code examples. ★ 40,418repo stars Power BI DAX Expert Mode Provides DAX guidance for Power BI following Microsoft best practices. It helps write clean measures, build time intelligence calculations, and optimize query speed. ★ 40,418repo stars PostgreSQL Database Administrator Subagent for managing PostgreSQL databases with the VS Code extension. It executes queries, inspects schemas, and handles admin tasks directly in Copilot. ★ 40,418repo stars Plan Mode - Strategic Planning & Architecture A subagent that reads your codebase and requirements before any code gets written. Useful when a task's scope is unclear and you need a starting point. ★ 40,418repo stars PHP MCP Expert Assists in building Model Context Protocol servers in PHP 8.2+ using the official PHP SDK. Generates tools, resources, and prompts with PHP attributes. ★ 40,418repo stars one-shot-feature-issue-planner Converts a single feature request into a complete, issue-ready implementation plan without asking follow-up questions. ★ 40,418repo stars Expert Nuxt Developer Guides Nuxt 3 and Nitro development with TypeScript typing. Helps configure data fetching via useFetch, resolve hydration issues, and structure server routes. ★ 40,418repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor