Agent Skillsfugazi/test-automation-skills-agents › playwright-regression-testing

playwright-regression-testing

GitHub

提供基于Playwright的Web应用回归测试策略,涵盖用例分层、CI/CD集成、变更影响分析、测试分片及不稳定用例管理,旨在优化测试套件执行效率与质量。

skills/playwright-regression-testing/SKILL.md fugazi/test-automation-skills-agents

Trigger Scenarios

制定回归测试计划与用例分层 配置CI/CD流水线中的测试执行 分析代码变更以选择受影响的测试用例 处理和管理不稳定的测试用例

Install

npx skills add fugazi/test-automation-skills-agents --skill playwright-regression-testing -g -y
More Options

Use without installing

npx skills use fugazi/test-automation-skills-agents@playwright-regression-testing

指定 Agent (Claude Code)

npx skills add fugazi/test-automation-skills-agents --skill playwright-regression-testing -a claude-code -g -y

安装 repo 全部 skill

npx skills add fugazi/test-automation-skills-agents --all -g -y

预览 repo 内 skill

npx skills add fugazi/test-automation-skills-agents --list

SKILL.md

Frontmatter
{
    "name": "playwright-regression-testing",
    "license": "Complete terms in LICENSE.txt",
    "description": "Govern Playwright TypeScript regression suites across many tests. Use when asked to plan, select, tier, execute, or optimize suites with risk\/change analysis, tags, CI\/CD, sharding, flaky-test management, or suite-health metrics; not for authoring one UI spec. Keywords: regression strategy, smoke tests, test selection, CI pipeline, flaky tests, test sharding, impact analysis, git diff."
}

Playwright Regression Testing (TypeScript)

Strategy and best practices for automated regression testing of web applications using Playwright with TypeScript.

Activation: This skill is triggered when working with regression test strategy, test suite selection, test prioritization, CI/CD pipeline testing, flaky test management, test sharding, or optimizing test execution for web applications using Playwright.

When to Use This Skill

  • Plan regression suites with risk-based and change-based test selection
  • Organize tests into tiers (smoke, sanity, selective, full regression)
  • Optimize execution with parallelization, sharding, and time-budget strategies
  • Integrate with CI/CD using GitHub Actions pipelines
  • Manage flaky tests with quarantine, retry policies, and root cause tracking
  • Monitor suite health with execution time, flake rate, and detection metrics
  • Select tests after changes using git diff analysis and impact mapping

Do NOT Use For

  • Authoring a single UI spec or page-object model (use playwright-e2e-testing).
  • Driving a live browser interactively for debugging (use playwright-cli).
  • Selenium/Java regression suites (use webapp-selenium-testing).
  • API contract testing in isolation (use api-testing).

Prerequisites

Requirement Details
Node.js v18+ recommended
Playwright @playwright/test package
TypeScript typescript configured in project
Browsers Installed via npx playwright install
Git Required for change-based test selection
GitHub Actions Recommended CI/CD platform

Quick Reference

Tiers: Smoke (<2min, every commit) → Sanity (<10min, every PR) → Selective (<30min, on merge) → Full (<60min, nightly/pre-release).

Key tags: @smoke, @sanity, @regression, @e2e, @api, @destructive — exactly one per test, never on describe() blocks. Domain-specific extensions (e.g., @a11y in accessibility skills) are allowed alongside, but only one execution tag per test.

CLI: npx playwright test --grep @smoke | --grep @regression | --grep-invert @destructive | --shard=1/4 | --last-failed

For full tier model, regression types table, and tag taxonomy, see references/regression-catalogs.md.


Red Flags

  • Treating flaky tests as "fixed" by adding retries or waitForTimeout — quarantine and root-cause instead.
  • Running the full suite on every commit — use tiered selection (smoke on commit, full nightly).
  • Quarantining tests silently with no tracking ticket — quarantine must be temporary and owned.
  • No change-based selection — running everything regardless of what changed wastes CI budget.
  • Ignoring suite-health metrics (rising duration, climbing flake rate) until they block releases.

References

Document Content
Regression Strategy Tier model (smoke→full), regression types, triggers, directory layout, test tagging and tag taxonomy
Regression Selection Test selection (change-based, risk-based, historical, time-budget) and test naming conventions
Regression Best Practices Locator priority, web-first assertions, test independence, test.step() reporting, complete worked example test
CI/CD Integration GitHub Actions tiered pipeline, sharding, merge reports, Playwright config, performance optimization, CLI reference
Flaky Management Retry policies, quarantine strategies, detection checklist, suite health metrics, troubleshooting

Verification

  • Smoke test subset identified — Tagged @smoke tests run in under 2 minutes
  • No test duplication — Each scenario tested exactly once at the appropriate level
  • Test isolation verified — Running tests in random order produces same results as sequential
  • Flaky test baseline established — All tests pass 5/5 consecutive runs

Version History

  • 4d874b6 Current 2026-08-20 02:17

    v4.1.0:标准化测试标签分类体系(single-tag taxonomy),移除过时标签并统一用法;v3:实施技能 QA 自动化增强计划,拆分大型参考文件并规范文档结构。

  • 49935c0 2026-07-25 08:22

Same Skill Collection

skills/a11y-playwright-testing/SKILL.md
skills/accessibility-selenium-testing/SKILL.md
skills/api-testing/SKILL.md
skills/grill-me-qa/SKILL.md
skills/playwright-cli/SKILL.md
skills/playwright-e2e-testing/SKILL.md
skills/qa-investigation/SKILL.md
skills/qa-manual-istqb/SKILL.md
skills/qa-test-planner/SKILL.md
skills/webapp-playwright-testing/SKILL.md
skills/webapp-selenium-testing/SKILL.md

Metadata

Files
0
Version
db514b5
Hash
97db23ab
Indexed
2026-07-25 08:22

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 04:58
浙ICP备14020137号-1