playwright-best-practices
Build Reliable Playwright Tests
Fragile tests and inconsistent setup make browser testing difficult to maintain. This skill provides practical Playwright patterns for test design, debugging, and CI workflows.
インストール前に停止して確認を求めてください。
計画を確認し、ファイルを変更する前にユーザーの明示的な同意を得てください。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "playwright-best-practices" from https://skillstore.io/skills/currents-dev-playwright-best-practices.md and its manifest at https://skillstore.io/api/skills/currents-dev-playwright-best-practices/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「playwright-best-practices」を使用しています。 A checkout test sometimes fails after clicking Submit.
期待される結果:
- Diagnosis: the assertion runs before the checkout response updates the page.
- Recommended change: register the response wait before clicking, then assert the confirmation heading.
- Verification: repeat the test and inspect traces for any remaining ordering failures.
「playwright-best-practices」を使用しています。 Plan a faster Playwright workflow for our CI pipeline.
期待される結果:
- Execution plan: divide tests across shards and isolate data by worker.
- Dependency plan: align browser binaries with the installed Playwright version and cache them using the dependency lockfile.
- Reporting plan: retain failure traces and merge shard reports into one result.
- Safety check: verify disposable database targets before reset or restore operations.
セキュリティ監査
中リスクMost presented alerts are benign Playwright examples; no evidence found of keylogging, prompt injection, or malicious exfiltration in reviewed context. Confirmed risks involve unguarded database operations, predictable temporary files, and indiscriminate process termination; HAR commit guidance adds a data-disclosure concern. All 400 presented findings were adjudicated; 888 omitted matches still require manual review before automatic publication. Static review was capped at 400/1288 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.
確認済みのセキュリティ上の懸念 (1)
機能レビュー項目 (7)
これらは、このスキルに期待される可能性のある実際のローカル機能であるため、レビューが必要ですが、確認済みの悪意ある動作としてはカウントされません。
リスク要因
⚙️ 外部コマンド (50)
🌐 ネットワークアクセス (50)
📁 ファイルシステムへのアクセス (50)
⚡ スクリプトを含む (4)
🔑 環境変数 (50)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/currents-dev-playwright-best-practices/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/currents-dev-playwright-best-practices?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/currents-dev-playwright-best-practices?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/currents-dev-playwright-best-practices/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/currents-dev-playwright-best-practices.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
currents-dev. (2026). playwright-best-practices security audit report (audit version 1) [Author version 1.2]. Skillstore. https://skillstore.io/skills/currents-dev-playwright-best-practices/audits/1BibTeX形式の引用
@techreport{currents-dev-currents-dev-playwright-best-practices-2026,
author = {currents-dev},
title = {playwright-best-practices security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/currents-dev-playwright-best-practices/audits/1},
note = {Author version 1.2}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "playwright-best-practices security audit report (audit version 1)"
version: "1.2"
type: report
authors:
- name: "currents-dev"
date-released: "2026-10-29"
url: "https://skillstore.io/skills/currents-dev-playwright-best-practices/audits/1"
identifiers:
- type: other
value: "skillstore:currents-dev-playwright-best-practices:audit:1"
description: "Skillstore immutable audit report identifier"
バリアントを比較
インストール可能なバリアント 3 件各作者のスキルは個別のインストール項目として維持されます。推奨バリアントは Skillstore の証拠で順位付けされます。
このバリアントが首位の理由
0xbigboss-playwright-best-practices
2026-10-11
currents-dev-playwright-best-practices
2026-10-29
vitalics-playwright-best-practices
2026-09-09
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
Add Maintainable Browser Tests
Create application tests with accessible locators, reusable setup, and assertions tied to visible behavior.
Investigate Intermittent Failures
Review flaky tests for timing errors, shared state, unstable selectors, and missing network synchronization.
Improve CI Test Workflows
Plan browser installation, caching, sharding, reports, and controlled environment setup for automated test runs.
これらのプロンプトを試す
Write a Playwright test for the login flow in this project. Use accessible locators and auto-waiting assertions. Identify missing application details before assuming selectors.
Review this failing Playwright test and its error output. Identify timing, locator, and isolation problems. Propose focused fixes and repeated-run verification without hiding failures.
Design Playwright fixtures for admin and member workflows in this project. Isolate worker data and protect saved authentication state. Explain which external services need mocks.
Review this Playwright CI configuration for sharding, caching, reports, and database lifecycle. Restrict destructive operations to disposable test resources. Require approval before destructive changes.
ベストプラクティス
- Use accessible locators and auto-waiting assertions that describe observable application behavior.
- Isolate test data and authentication state; keep credentials and sanitized recordings out of unintended publication paths.
- Review destructive setup commands before execution and verify changes with targeted, repeated test runs.
回避
- Replacing reliable synchronization with fixed sleeps or excessive retries.
- Sharing mutable users, sessions, or database state across parallel workers without isolation.
- Running database resets against unverified targets or committing recordings without secret redaction.