技能 编程开发 Playwright 场景测试生成器

Playwright 场景测试生成器

v20260410
playwright-generate-test
本技能旨在根据用户提供的详细业务场景,自动化生成完整的Playwright端到端测试用例。它遵循预设步骤,利用Playwright MCP工具链,生成可执行的TypeScript代码,并在本地执行和迭代测试,确保测试覆盖率和功能准确性。
获取技能
438 次下载
概览

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
信息
Category 编程开发
Name playwright-generate-test
版本 v20260410
大小 877B
更新时间 2026-04-12
语言