playwright-blazor-testing
CommunityRobust Playwright tests for Blazor apps.
AuthorAaronontheweb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Blazor UI testing can be error-prone, time-consuming, and brittle without reliable end-to-end tests. This Skill provides ready-to-use Playwright patterns to validate navigation, authentication, and real-time updates in Blazor apps.
Core Features & Use Cases
- End-to-end UI testing for Blazor Server and WebAssembly deployments.
- Robust navigation, component interaction, authentication flows, and SignalR updates.
- Stable selectors using data-test attributes and accessible roles.
- Quick Start includes a minimal test scaffold and examples.
Quick Start
- Install Playwright and browsers using pwsh -Command "playwright install --with-deps"
- Create a new .NET test project: dotnet new xunit -n BlazorUITests
- Add the Playwright NuGet package: dotnet add package Microsoft.Playwright
- Run an initial test to navigate to your Blazor app and verify a heading, e.g. https://localhost:5001
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: playwright-blazor-testing Download link: https://github.com/Aaronontheweb/dotnet-skills/archive/main.zip#playwright-blazor-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.