All skills
github avatar

/playwright-generate-test

@90921cc official
by githubgithub/awesome-copilot40k stars
5,040

Generate a Playwright test based on a scenario using Playwright MCP

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/playwright-generate-test

This session only. Nothing lands on disk.

SKILL.md

≈23 tokens always: the name and description. ≈189 when used: this file.

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

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill generates and executes code based on user-provided scenarios. While this is its core function, it creates a potential surface for malicious input to influence the generated code's behavior.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 90921cc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 5 months ago

README badge

README badge for github/awesome-copilot/playwright-generate-test

Generates Playwright tests from user-provided scenarios by inspecting the application with Playwright MCP tools, then emitting and executing a TypeScript test file until it passes. Targets teams using Playwright with the Model Context Protocol integration.

Generated from the current SKILL.md.

Does this skill generate tests for any web application, or is it specific to certain frameworks?
The skill generates Playwright tests for any web application. It uses Playwright MCP to interact with and test web scenarios regardless of the target application's framework.
What format does the generated test use?
Generated tests use TypeScript with the @playwright/test framework and are saved to the tests directory.
Do I need to provide a scenario, or does the skill generate one automatically?
You must provide a scenario. The skill will ask you for one if you don't supply it upfront.
Does the skill iterate if the generated test fails?
Yes. The skill executes the generated test file and iterates until the test passes.

Generated from the current SKILL.md. These answers refresh after source changes.