Tooluck logoTooluck
SKILL.md

playwright-blazor-testing

Agent skill fromAaronontheweb/dotnet-skills

Write UI tests for Blazor applications (Server or WebAssembly) using Playwright. Covers navigation, interaction, authentication, selectors, and common Blazor-specific patterns.

How to install playwright-blazor-testing

install playwright-blazor-testing
# install the dotnet-skills pack with the skills CLI
npx skills add Aaronontheweb/dotnet-skills

# or add only this skill to Claude Code: copy the folder

skills/playwright-blazor/

# into

~/.claude/skills/playwright-blazor/ (all projects)

.claude/skills/playwright-blazor/ (one project)

skills/playwright-blazor/SKILL.md

MITFull file
1# Testing Blazor Applications with Playwright
2
3## When to Use This Skill
4
5Use this skill when:
6- Writing end-to-end UI tests for Blazor Server or WebAssembly applications
7- Testing interactive components, forms, and user workflows
8- Verifying authentication and authorization flows
9- Testing SignalR-based real-time updates in Blazor Server
10- Capturing screenshots for visual regression testing
11- Testing responsive designs and mobile emulation
12- Debugging UI issues with browser developer tools
13
14## Core Principles
15
161. **Wait for Rendering** - Blazor renders asynchronously; use proper wait strategies
172. **Test Attributes** - Use `data-test` or `data-testid` attributes for stable selectors
183. **Headless by Default** - Run tests headless in CI, headed for local debugging
194. **Handle Error UI** - Always check for `#blazor-error-ui` to catch unhandled exceptions
205. **Avoid Network Wait States** - Blazor navigation doesn't trigger network loads; wait for DOM changes
216. **Pin Browser Channels** - Use specific browser channels (msedge, chrome) for reproducibility
22
23## Required NuGet Packages
24
25```xml
26<ItemGroup>
27 <PackageReference Include="Microsoft.Playwright" Version="*" />
28 <PackageReference Include="Microsoft.Playwright.MSTest" Version="*" />
29 <!-- OR for xUnit -->
30 <PackageReference Include="xunit" Version="*" />
31 <PackageReference Include="xunit.runner.visualstudio" Version="*" />
32</ItemGroup>
33```
34
35## Installation
36
37Before running tests, install Playwright browsers:
38
39```bash
40…

Excerpt shown under the repository's MIT license.

More skills in dotnet-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates