Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Testing Blazor Applications with Playwright23## When to Use This Skill45Use this skill when:6- Writing end-to-end UI tests for Blazor Server or WebAssembly applications7- Testing interactive components, forms, and user workflows8- Verifying authentication and authorization flows9- Testing SignalR-based real-time updates in Blazor Server10- Capturing screenshots for visual regression testing11- Testing responsive designs and mobile emulation12- Debugging UI issues with browser developer tools1314## Core Principles15161. **Wait for Rendering** - Blazor renders asynchronously; use proper wait strategies172. **Test Attributes** - Use `data-test` or `data-testid` attributes for stable selectors183. **Headless by Default** - Run tests headless in CI, headed for local debugging194. **Handle Error UI** - Always check for `#blazor-error-ui` to catch unhandled exceptions205. **Avoid Network Wait States** - Blazor navigation doesn't trigger network loads; wait for DOM changes216. **Pin Browser Channels** - Use specific browser channels (msedge, chrome) for reproducibility2223## Required NuGet Packages2425```xml26<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```3435## Installation3637Before running tests, install Playwright browsers:3839```bash40…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
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
