Playwright Blazor Testing
Playwright-driven UI testing for Blazor Server and WebAssembly apps, covering navigation, auth, and selectors.
- CCM score
- 55 of 100
- skills.sh installs
- 582
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers navigation between pages, form interaction, authentication flows, selector strategies, and Blazor-specific wait patterns
- Includes C# setup patterns for a Playwright fixture, cookie-based auth injection, and OAuth redirect mocking via route interception
- Enforces waiting on DOM changes rather than network idle, since Blazor client-side navigation does not trigger page loads
- Designed for teams writing end-to-end UI tests for Blazor applications in MSTest or xUnit
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill playwright-blazor-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Testing Blazor Applications with Playwright
When to Use This Skill
Use this skill when:
- Writing end-to-end UI tests for Blazor Server or WebAssembly applications
- Testing interactive components, forms, and user workflows
- Verifying authentication and authorization flows
- Testing SignalR-based real-time updates in Blazor Server
- Capturing screenshots for visual regression testing
- Testing responsive designs and mobile emulation
- Debugging UI issues with browser developer tools
Core Principles
- Wait for Rendering - Blazor renders asynchronously; use proper wait strategies
- Test Attributes - Use
data-testordata-testidattributes for stable selectors - Headless by Default - Run tests headless in CI, headed for local debugging
- Handle Error UI - Always check for
#blazor-error-uito catch unhandled exceptions - Avoid Network Wait States - Blazor navigation doesn't trigger network loads; wait for DOM changes
- Pin Browser Channels - Use specific browser channels (msedge, chrome) for reproducibility
Required NuGet Packages
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- Testing & QA, .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the playwright-blazor-testing skill do?
It writes UI tests for Blazor applications, both Server and WebAssembly, using Playwright. It covers navigation, interaction, authentication, selectors, and common Blazor-specific patterns such as waiting for rendering and checking the blazor-error-ui element.
How do I install the playwright-blazor-testing skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill playwright-blazor-testing -y in a project. After that, the agent can write Playwright UI tests for your Blazor app, using the Microsoft.Playwright NuGet packages and the install step for browsers.
Which skills sit alongside playwright-blazor-testing in the Testing and QA category?
It is listed in the Testing and QA category on Claude Marketplaces, next to tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. Its focus is end-to-end UI testing of Blazor pages rather than general test-driven development.
What does the skill need before tests will run?
The skill expects the Microsoft.Playwright and Microsoft.Playwright.MSTest or xunit packages in the project. Playwright browsers must be installed first with pwsh -Command playwright install --with-deps.
More from aaronontheweb/dotnet-skills
All 34- Dotnet Local Tools573
- Aspire Integration Testing545
- Mjml Email Templates535
- Aspire Service Defaults520
- Snapshot Testing509
- Aspire Configuration508
- Dotnet Devcert Trust480
- Skills Index Snippets478
- Playwright Ci Caching476
- Akka Net Best Practices472
- Mailpit Integration465
- Verify Email Snapshots458
- OpenTelemetry NET Instrumentation456
- Akka Hosting Actor Patterns455
- Akka Net Testing Patterns452
- Akka Net Management451
- Akka Net Aspire Configuration437
- Marketplace Publishing430
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.6K
- Dependency Injection Patterns732
- Database Performance731
- Dotnet Project Structure723
Similar to Playwright Blazor Testing
More Testing & QAplaywright-e2e-testingfugazi/test-automation-skills-agents646 installsAuthoring and maintaining versioned Playwright TypeScript UI specs for browser user flows, with API-setup and mocking.
playwright-visual-testingmanutej/luxor-claude-marketplace1.4K installsBrowser automation and visual regression testing through the Playwright MCP server, covering navigation, snapshots, and interactions.
playwrightsecondsky/claude-skills1.1K installsBrowser automation and E2E testing with Playwright that auto-detects dev servers and writes scripts to /tmp.
playwright-expertjeffallan/claude-skills5.8K installsPlaywright E2E test specialist with role-based selectors, page object models, and flaky-test debugging.
e2e-testing-automationaj-geddes/useful-ai-prompts698 installsPractical end-to-end browser test guide covering Playwright, Cypress, and Selenium with Page Object Model patterns.
playwright-skilllackeyjb/playwright-skill8.2K installsBrowser automation with Playwright that auto-detects dev servers and writes reusable test scripts for testing sites.