Skip to main content

playwright-test-patterns

Use when writing, refactoring, running, or debugging Playwright tests in BTCPayServer. Covers local test setup, PMO/Page Model Object usage, selector encapsulation, and avoiding over-engineering.

ソース情報

リポジトリ
btcpayserver/btcpayserver
ソースの最終更新活動
2026年9月29日 09:34
検出された SKILL.md の言語
英語
スター
7,884
フォーク
2,054

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
playwright-test-patterns
description
Use when writing, refactoring, running, or debugging Playwright tests in BTCPayServer. Covers local test setup, PMO/Page Model Object usage, selector encapsulation, and avoiding over-engineering.
# Playwright Test Patterns Follow [Testing](../../../docs/maintainers/local-development.md#testing) and [Coding conventions](../../../docs/maintainers/coding-conventions.md#frontend-selectors). ## Running and Debugging Tests - Run focused tests directly with `dotnet test`; do not use `.github/scripts/run-tests.sh`, which rebuilds the Docker test environment and is too slow for local iteration. - If the test dependencies are not already running, start them with `docker-compose up -d dev` from the `BTCPayServer.Tests` directory. - Always set `PLAYWRIGHT_HEADLESS=true` when running Playwright tests so browser windows do not interrupt the user. - Run tests directly on the host rather than through Docker Compose. From the repository root, run a specific test with: ```sh PLAYWRIGHT_HEADLESS=true dotnet test --project BTCPayServer.Tests/BTCPayServer.Tests.csproj --filter-method BTCPayServer.Tests.BitpayTests.CanUsePairing ``` - Replace the value passed to `--filter-method` with the fully qualified test method to run another test. - Run the relevant test or test project build after changing Playwright selectors or Page Model Objects.
GitHubで見る