Playwright Generate Test

🏢Official
by github · vlatest · Repository

Official github skill covering Playwright, code generation, testing for testing, debugging, and quality assurance.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add playwright-generate-test npx -- -y @trustedskills/playwright-generate-test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "playwright-generate-test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/playwright-generate-test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The playwright-generate-test skill enables AI agents to automatically generate Playwright test scripts for web applications. It analyzes the structure and behavior of a website, then creates end-to-end tests that simulate user interactions like clicking buttons, filling forms, and navigating pages.

When to use it

  • You need to quickly create a suite of automated tests for a new or updated web application.
  • You want to reduce manual test writing by leveraging AI-generated code.
  • Your team is adopting Playwright and needs boilerplate test scripts to get started.
  • You're looking to validate that your website behaves as expected across different browsers.

Key capabilities

  • Automatically generates Playwright tests based on user interactions observed or described.
  • Supports multiple programming languages, including JavaScript and TypeScript.
  • Integrates with CI/CD pipelines for continuous testing of web applications.
  • Can be customized to fit specific test scenarios or frameworks.

Example prompts

  • "Generate a Playwright test script for the login functionality of my website."
  • "Create a test that navigates to the homepage, searches for 'AI', and verifies the results page loads correctly."
  • "Write a TypeScript Playwright test that fills out a contact form and checks for success message."

Tips & gotchas

  • Ensure your application is accessible via a URL that the AI agent can reach.
  • Generated tests may require adjustments to match exact selectors or assertions in your project.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
github
Installs
4.2k

🏢 Official

Published by the company or team that built the technology.