migrating-tests-to-playwright

migrating-tests-to-playwright is a skill for Claude Code from jaktestowac/awesome-copilot-for-testers. It costs 89 tokens per session (2,335 once invoked), scanned A, original, MIT.

A staged method for moving browser tests from Cypress, Selenium, WebdriverIO, or Protractor to Playwright, another browser-testing tool.

In plain words
What is it for?
It helps divide the migration into slices, compare the new tests with the old ones, decide what to drop, and remove each old slice after coverage is proven.
Why use it?
It prevents migrations from leaving two test suites running indefinitely and helps avoid carrying over tests that are flaky, weak, or no longer useful.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It helps divide the migration into slices, compare the new tests with the old ones, decide what to drop, and remove each old slice after coverage is proven.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jaktestowac/awesome-copilot-for-testers --skill migrating-tests-to-playwright
Clone the repo
git clone --depth 1 https://github.com/jaktestowac/awesome-copilot-for-testers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrating-tests-to-playwright

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright/github.svg)](https://agentmods.dev/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright)
Your own site
<a href="https://agentmods.dev/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright"><img src="https://agentmods.dev/badge/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrating-tests-to-playwright

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright"><img src="https://agentmods.dev/badge/skills/jaktestowac/awesome-copilot-for-testers/migrating-tests-to-playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.02335
Opus 5 $0.00044 $0.01167
Sonnet 5 $0.00018 $0.00467
Haiku 4.5 $0.00009 $0.00233

Measured 12d ago against content hash e2642d1a38c8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

migrating-tests-to-playwright scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/migrating-tests-to-playwright/skills/migrating-tests-to-playwright/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrating Tests to Playwright

Use this skill when an existing browser suite is moving to Playwright and the migration needs to finish.

The characteristic failure is not a hard translation problem. It is a migration that stalls at 60 percent, leaving two suites, two CI jobs, two sets of conventions, and nobody willing to delete the old one because nobody can prove the new one covers the same ground. Everything below is arranged to prevent that: slices with parity gates, and a deletion at the end of every slice.

The second thing this skill insists on: a migration is the cheapest opportunity you will ever get to not port the tests that should not exist. A line-by-line translation preserves the old suite's flakiness, its weak assertions, and its coverage gaps, and adds a migration's worth of risk on top.

When to Use

  • a Cypress, Selenium, WebdriverIO, or Protractor suite is moving to Playwright
  • a migration is underway and has stalled with both suites running
  • someone is about to start translating files and there is no plan
  • the question is which tests to port and which to drop
  • a framework is being evaluated and the migration cost needs estimating

Operating Principles

  • Slices, not a big bang. Migrate a vertical slice, prove parity, delete the old tests in that slice, then move on. Two suites is a temporary state with a deadline, not a phase.
  • Every slice ends with a deletion. Without it, the old suite survives forever and the migration is never done.
  • Port behaviour, not code. The old test's intent is the requirement. Its implementation is not.
  • Triage before translating. Tests that are flaky, redundant, or prove nothing get dropped or rewritten, not carried over.
  • Parity is measured, not asserted. A slice is done when the new tests fail on the defects the old ones caught.
  • Adopt Playwright's model rather than emulating the old one. A Cypress-shaped Playwright suite gets the migration cost and none of the benefit.

Read the full file on GitHub · 172 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 172 lines · 89 tokens per session scan A e2642d1a38c8

Subscribe to this mod's changes

migrating-tests-to-playwright is a skill published in the GitHub repository jaktestowac/awesome-copilot-for-testers (113 stars, last pushed 16d ago), licensed MIT. It adds 89 tokens to every session and 2,335 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

winui-ui-testing

Automated UI testing for Windows desktop apps — generate a batch test script with the winapp ui UI Automation harness, run all tests in one pass, read results. Covers element assertions, interactions, value checking (TextBox, ComboBox, ToggleSwitch), keyboard shortcuts and typing (send-keys), hover, drag-and-drop…

microsoft/win-dev-skills · 122 tokens

playwright-visual-testing

Add, repair, or review Playwright visual regression tests for browser-facing .NET apps, including screenshot baselines, Pixelmatch thresholds, deterministic rendering, and GitHub Actions artifacts. USE FOR: toHaveScreenshot, page.screenshot visual checks, Pixelmatch/pngjs comparison scripts, visual baseline updates…

managedcode/dotnet-skills · 101 tokens

ui-aqa-flow

Workflow for automated QA: integration and end-to-end UI test automation, page objects, etc.

griddynamics/rosetta · 24 tokens

qa-knowledge

To run QA engineering — requirements/gap analysis, scenario & spec design, test implementation, failure triage — over the QA knowledge base.

griddynamics/rosetta · 32 tokens

playwright-testing

Generer og kjør Playwright E2E-tester for webapplikasjoner med page objects, auth fixtures og tilgjengelighetstester.

navikt/copilot · 33 tokens

playwright-skill

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions…

tech-leads-club/agent-skills · 95 tokens