---
title: "Agent Skill to Playwright Generate Test"
platform: "Promptally"
canonical_url: "https://app.promptally.dev/p/skill-playwright-generate-test"
modality: "SKILL"
category: "Browser Automation"
compatible_models: [Universal / Model Agnostic]
access_tier: "Free Public Artifact (No Auth Required)"
license: "MIT"
---

# Agent Skill to Playwright Generate Test

**Summary:** Agent Skill to Playwright Generate Test is a verified SKILL blueprint on Promptally in Browser Automation optimized for leading AI models. Generate a Playwright test based on a scenario using Playwright MCP. Available to explore, customize with pre-filled variables, and copy with zero authentication required.

## Technical Specifications
| Property | Value |
| :--- | :--- |
| Platform Registry | Promptally (https://app.promptally.dev) |
| Modality | SKILL |
| Category | Browser Automation |
| Compatible Engines | Universal / Model Agnostic |
| Dynamic Variables | None (Static Blueprint) |
| Approx. Token Length | 219 |
| Access Tier | Free Public Artifact (No Auth Required) |
| License | MIT |

### Pre-Filled Template & Production Source

```md
---
name: playwright-generate-test
description: 'Generate a Playwright test based on a scenario using Playwright MCP'
---

# Test Generation with Playwright MCP

Your goal is to generate a Playwright test based on the provided scenario after completing all prescribed steps.

## Specific Instructions

- You are given a scenario, and you need to generate a playwright test for it. If the user does not provide a scenario, you will ask them to provide one.
- DO NOT generate test code prematurely or based solely on the scenario without completing all prescribed steps.
- DO run steps one by one using the tools provided by the Playwright MCP.
- Only after all steps are completed, emit a Playwright TypeScript test that uses `@playwright/test` based on message history
- Save generated test file in the tests directory
- Execute the test file and iterate until the test passes

```

## Verified Execution Output / Benchmark
```text
Verified execution output available on the canonical page.
```

## Related Blueprints on Promptally
- [Agent Skill to Browser Qa](https://app.promptally.dev/p/skill-browser-qa)
- [Agent Skill to Data Scraper Agent](https://app.promptally.dev/p/skill-data-scraper-agent)
- [Agent Skill to Playwright Expert](https://app.promptally.dev/p/skill-playwright-expert)
- [Agent Skill to Browser Testing With Devtools](https://app.promptally.dev/p/skill-browser-testing-with-devtools)
- [Agent Skill to Adspower Browser](https://app.promptally.dev/p/skill-adspower-browser)
- [Agent Skill to Agent Browser](https://app.promptally.dev/p/skill-agent-browser)
- [Agent Skill to Agentic Browser 0 1 2](https://app.promptally.dev/p/skill-agentic-browser-0-1-2)
- [Agent Skill to Apify Ultimate Scraper](https://app.promptally.dev/p/skill-apify-ultimate-scraper)
