playwright-visual-regression-suite

Performs automated visual regression testing using Playwright's screenshot comparison APIs (page.screenshot and maxDiffPixelRatio) and the toMatchSnapshot assertion. Supports cross-browser testing on Chromium, Firefox, and WebKit.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "playwright-visual-regression-suite" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a6c44ef27caaee88d1a31ebed29cdf058875aa3d07ddbee8fe687abf29e4cc0a. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/playwright-visual-regression-suite before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Performs automated visual regression testing using Playwright's screenshot comparison APIs (page.screenshot and maxDiffPixelRatio) and the toMatchSnapshot assertion. Supports cross-browser testing on Chromium, Firefox, and WebKit.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Playwright 可视化回归测试套件"
slug: "playwright-visual-regression-suite"
version: "1.0.0"
displayName: "Playwright 可视化回归测试套件"
summary: "使用 Playwright 的截图比较 API(page.screenshot 与 maxDiffPixelRatio)和 toMatchSnapshot 断言进行自动化视觉回归测试。支持在 Chromium、Firefox 和 WebKit 浏览器上进行跨浏览器测试。"
license: "MIT"
description: "使用 Playwright 的截图比较 API(page.screenshot 与 maxDiffPixelRatio)和 toMatchSnapshot 断言进行自动化视觉回归测试。支持在 Chromium、Firefox 和 WebKit 浏览器上进行跨浏览器测试。"
github_stars: 86409
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Browser Automation"
framework: "Codex"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 86409
  npm_package: "playwright"
  npm_weekly_downloads: 47883561

Playwright 可视化回归测试套件

Automated visual regression testing using Playwright's screenshot comparison API (page.screenshot with maxDiffPixelRatio) and toMatchSnapshot assertions. Supports cross-browser testing on Chromium, Firefox, and WebKit.

Installation

Use the upstream install or setup path that matches your environment:

  • npm install -g @playwright/cli@latest
  • npm i playwright

Requirements and caveats from upstream:

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 Playwright 可视化回归测试能力,解决前端开发中视觉回归测试的明确痛点
  • 支持 Chromium、Firefox 和 WebKit 跨浏览器测试,覆盖主流浏览器场景
Trigger Precision95/100

Highlights

  • description 明确描述了使用 Playwright 截图比较 API 进行视觉回归测试
  • 触发词精准完整,边界清晰,覆盖核心功能点
Structure and Standards65/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档缺少 When to Use 章节,用户难以快速判断适用场景

    Recommendation: 建议添加 When to Use 章节,说明该 Skill 的最佳使用时机和场景

  • 缺少端到端示例 Reported severity: Minor

    文档缺少具体的端到端使用示例,用户难以快速上手

    Recommendation: 建议添加完整的端到端示例,展示从安装到实际测试的完整流程

Highlights

  • frontmatter 完整,包含必要的元数据信息
  • 文档结构基本清晰,包含 Installation 和 Basic usage 说明
Execution Reliability70/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Minor

    文档未提及异常处理机制和错误恢复策略

    Recommendation: 建议添加异常处理说明,指导用户在测试失败时的处理方式

Highlights

  • 工具来源明确,基于官方 Playwright 框架
  • 参数说明正确,支持 maxDiffPixelRatio 等关键配置
Evidence Verifiability (mean of the first four)76/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 28, 29
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • playwright.dev
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.