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.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「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.