gen-page-test

Generate PageObject classes and matching tests for Playwright and pytest projects.

176|2|Updated May 21, 2026
One-click install
npx skills add https://github.com/DanielSuo117/velocitai --skill gen-page-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-page-test
Source: https://github.com/DanielSuo117/velocitai/tree/main/zh/skills/gen-page-test
Command: npx skills add https://github.com/DanielSuo117/velocitai --skill gen-page-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

一键生成 PageObject 与配套测试,解决新增页面后重复编码和维护测试用例的低效问题。

Core Features & Use Cases

  • 自动生成 PageObject 类和对应的测试文件,覆盖新增页面的交互点。
  • 自动更新导入和测试结构,支持多角色场景与回归点管理。
  • 典型用例:为一个新页面生成 PageObject、测试用例和回归点,快速落地自动化测试。

Quick Start

Provide the page name, URL, and role to trigger the generator.

Frequently Asked Questions about gen-page-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PageObject classes and tests for a new Playwright page?

To generate PageObject classes, provide the page name, URL, role, and regression points. The tool then automates class creation, test file scaffolding, and wires regression coverage for Playwright and pytest projects.

What inputs are required to scaffold Playwright tests using pytest?

Scaffolding tests requires the new page name, page URL, user role, and specific regression points. These inputs ensure proper class naming, generate matching test files, and wire interactions into the pytest structure.

Does this automation tool support multi-role scenarios in Playwright?

Yes, the automation tool supports multi-role scenarios in Playwright. You provide the specific role during generation, and it structures the PageObject and matching tests to manage interactions and regression points for that role.

How do I automate test wiring when adding a new frontend page?

You automate test wiring by inputting the new page name and URL into the generator. It automatically updates imports, creates the PageObject, and scaffolds the pytest structure to cover the new page interactions.

What is the best way to manage regression points for new page interactions?

The best way to manage regression points is to define them as inputs during page generation. The tool takes these regression points and automatically wires them into the generated pytest test files for ongoing coverage.