Tri d'issues Playwright

VérifiéPrudence

Triez les rapports de bugs Playwright en les reproduisant à partir des détails de l'issue. À utiliser pour trier, reproduire ou vérifier un issue GitHub.

Spar Skills Guide Bot
TestingAvancé
29/08/2026
Claude Code
#playwright#bug-triage#reproduction#github-issues#bisect

Recommandé pour

Synthèse automatique

Trie un ticket GitHub Playwright en identifiant sa nature réelle (bug, demande de fonctionnalité, problème upstream, question) puis, pour les bugs, en le reproduisant de façon exhaustive afin de rendre un statut vérifié.

Points forts

  • Classe le ticket par son contenu plutôt que par son label, avec une marche à suivre distincte pour chaque type (bug, feature, upstream, question)
  • Méthode de reproduction systématique : les trois navigateurs, tip-of-tree puis version signalée, et repérage des divergences entre navigateurs comme signal fort
  • Distingue soigneusement la famille Playwright (@playwright/mcp, -vscode, -python, -java, -dotnet) d'un véritable upstream, et évite de faire re-filer un ticket en interne
  • Fournit un livrable concret pour les petites demandes de fonctionnalité : un test d'acceptation avec l'assertion souhaitée en fixme

Limites

  • L'objectif est un statut vérifié, pas un correctif : le skill ne propose ni patch ni régression à appliquer
  • Suppose un accès réseau et la capacité de cloner des dépôts, d'installer des builds @next et d'écrire dans ~/tmp
  • Dépend de fichiers compagnons du dépôt (guide de bisection, skill playwright-cli) référencés par chemins relatifs
  • Un bug purement lié à l'environnement du rapporteur peut rester non reproductible, et le skill se limite alors à documenter les écarts
Quand l'utiliser

Quand un rapport de bug Playwright ou un nouveau commentaire sur un ticket existant doit être trié, reproduit ou vérifié.

Quand l'éviter

Quand il faut corriger le bug ou écrire une suite de tests, plutôt que déterminer si et où le problème se reproduit.

Analyse de sécurité

Prudence
Score qualité82/100

The skill's purpose is legitimate triage, and it contains no destructive commands, credential handling, obfuscated payloads, or data exfiltration — nothing malicious. However, it explicitly directs the agent to clone arbitrary user-supplied repositories, `npm install` them, and execute their tests plus other repos' toolchains on the local machine, which is powerful execution of untrusted third-party code without any isolation or vetting step. That places it at 'caution' rather than 'safe'.

Points d'attention
  • •Instructs cloning a repro repo linked from an untrusted GitHub issue and running `npm install` inside it — install scripts and test harnesses from third-party code execute with the agent's privileges.
  • •Tells the agent to check out and reproduce in sibling Playwright repos (`-vscode`, `-python`, `-java`, `-dotnet`) using each project's own toolchain, i.e. running arbitrary build/test commands from other codebases.
  • •No sandboxing, containerization, or 'review the repro before running it' guidance is given for handling untrusted reproduction artifacts.
  • •Reads and follows links/attachments embedded in issue text (repro repos, cited upstream issues), which is an attacker-controllable input path.
Comment cette analyse est faite

Exemples

Triage a new bug report
Triage this Playwright issue: https://github.com/microsoft/playwright/issues/34567 — reproduce it and tell me whether it's a live bug on tip-of-tree, already fixed, or actually upstream.
Re-check a follow-up comment
There's a new comment on issue #34102 claiming it still fails on webkit with 1.61. Can you reproduce that and confirm or refute it?
Feature or bug?
Issue #40988 is labelled [Feature] about unknown selectors failing silently. Is this really a bug, a feature request, or already supported? If it's a small feature, write me an acceptance test.

name: playwright-triage description: Triage a Playwright bug report by reproducing it from the information in the issue. Use when asked to triage, reproduce, or verify a GitHub issue (a new bug report, or an existing report with a new comment). user_invocable: true

Playwright Issue Triage

Triage a GitHub issue by working out what it actually is, then doing the right thing for that kind. The goal is a clear, verified status, not a fix.

First, classify the issue

Judge by the content, not the label — a "[Feature]" is often really a bug (something already should work), and a "[Bug]" is sometimes expected behaviour. Work out what it actually is:

  • Bug — reproduce it. The bulk of this skill.
  • Feature request — nothing to reproduce. Check it doesn't already exist (search docs/API, maybe under another name), verify any source the reporter cites by reading it, and surface the real design question. If it's small and well-scoped (like "fail loudly instead of silently"), the ideal takeaway is an acceptance test: one self-contained spec asserting current behaviour (passes today) with the desired behaviour alongside as a fixme/commented assertion.
  • Upstream / environment — a genuinely external owner (the Node project, a browser engine, a website's own server/cert config), not Playwright. Find the real owner, don't brute-force a repro, verify any cited upstream issue and point at the real fix path. Note: the Playwright family — @playwright/mcp (source lives here under packages/playwright-core/src/tools/mcp/), playwright-vscode, -python, -java, -dotnet — is not "upstream"; it's us. Never tell a reporter to refile within the project (see below).
  • Question / usage — answer it or point at the docs.

The rest of this skill is the bug path.

Reproducing a bug

You're not in a hurry, so be exhaustive before giving up. If the user has provided a minimal repro, try it first. If it does not repro for you, play around with things they might have forgotten to mention: all three browsers, headed/headless, a few recent versions, and variations of the snippet or trigger. Report "cannot reproduce" only after you've genuinely explored — and say what you tried. If you have a hunch for what information would help, ask for it.

Run across browsers, and watch for divergence — a bug that only reproduces in webkit, or everywhere except firefox, is a strong signal worth leading with. Plenty of bugs are browser-agnostic, though, and those are just as real: reproducing on every browser is a good result to report, not a non-finding.

  1. Read the whole thread, comments included — the missing repro or narrowed trigger is often there.
  2. Pull the inputs: version, browser(s), OS, repro repo/snippet, Expected-vs-Actual (your oracle). If something's missing, guess and try anyway; note assumptions in the report.
  3. Reproduce on tip-of-tree first, in ~/tmp/issue-<number>/: clone the linked repo, or scaffold npm install @playwright/test@next with a single-project config (see bisect-published-versions.md). Use PLAYWRIGHT_HTML_OPEN=never. If it reproduces on ToT, it's a live bug — record the exact version/sha you tested, and if it looks like a regression, bisect it (see the guide).
  4. If ToT doesn't reproduce it, try the version the user reported. If it reproduces there but not on ToT, it's already fixed — find the version/PR that fixed it (a cherry-pick may still be worth it). If neither reproduces, it's incomplete or env-specific — say what you couldn't match. (A version ending in -next, e.g. 1.62.0-next, is not an npm version — it means tip-of-tree, which is the @next build you already tried.)

To step through a test interactively, use the playwright-cli skill.

Reports sometimes target another part of the Playwright project — @playwright/mcp (its source is in this repo), playwright-vscode, playwright-python, playwright-java, playwright-dotnet. These are all us, so triage them like anything else: check out that repo and reproduce there in its own language/toolchain when needed. Never tell the reporter the issue belongs in a different Playwright repo or should be refiled there — that's an internal routing detail, not the reporter's problem.

Condense the repro into a self-contained test

Big or app-specific repros are much more useful boiled down to a single self-contained spec, written the way our tests are: one test(...) using the page and server fixtures, tagged with the issue link. Crucially:

  • No test.beforeAll / afterAll, no http.createServer, no manual setup/teardown. The fixtures already give you a page and a web server. Use server.setRoute(...), server.setRedirect(...), server.PREFIX, server.EMPTY_PAGE instead of standing up your own.
  • Drive the page with page.setContent(...) or page.goto(server.PREFIX + '/...').
  • Keep only what's needed to trigger the bug, and end on the assertion that fails.

Drop it into the repo (tests/page/) and run it with npm run ctest.

Mirror real self-contained tests, e.g.:

Report

Give a status that fits the issue type — for a bug: reproduced / fixed-on-latest / cannot-reproduce / not-a-bug; for a feature request or upstream/env issue: a short verdict (already-possible, valid request, upstream — owned by X) — plus the evidence. For bugs, include the condensed repro and be exhaustive about what you ran — the full matrix of browsers, versions, and variations you tried, not just the one that worked — so the reader can trust the verdict and skip re-checking. Call out any browser-specific divergence. Write it in the Playwright bot voice (.github/workflows/bot-voice.md, relative to the repo root) — maintainer voice, not AI-speak.

Watch out

  • Only run code you trust — skim a linked repo/snippet first; bail and report that in the issue comment if it has postinstall scripts, obfuscated code, or random small libraries.
  • Triage ends at a reproduction and a status; don't jump to a fix.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/playwright-issue-triage-mte1lfwk' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/playwright-issue-triage-mte1lfwk/download' --output '.skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md.part' && mv '.skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md.part' '.skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md' && test -s '.skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/playwright-triage' && cp -R '.skill-downloads/playwright-issue-triage-mte1lfwk' '.claude/skills/playwright-triage'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/playwright-issue-triage-mte1lfwk'

openskills read 'playwright-issue-triage-mte1lfwk'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/playwright-issue-triage-mte1lfwk/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires