playwright-blazor-testing

Create and run Playwright end-to-end UI tests for Blazor applications.

Updated Apr 11, 2023
One-click install
npx skills add https://github.com/salverius-tech/dotfiles --skill playwright-blazor-testing-salverius-tech
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: playwright-blazor-testing
Source: https://github.com/salverius-tech/dotfiles/tree/main/home/dot_claude/skills/playwright-blazor
Command: npx skills add https://github.com/salverius-tech/dotfiles --skill playwright-blazor-testing-salverius-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and execution of end-to-end UI tests for Blazor applications, ensuring their reliability and functionality across different scenarios.

Core Features & Use Cases

  • Blazor UI Testing: Write robust UI tests for Blazor Server and WebAssembly applications.
  • Interactive Component Testing: Verify complex user interactions, forms, and authentication flows.
  • Debugging & Visual Regression: Capture screenshots and utilize browser developer tools for effective debugging.
  • Use Case: Automatically test your Blazor e-commerce site's checkout process, from adding items to the cart to completing the payment, ensuring a seamless user experience.

Quick Start

Use the playwright-blazor-testing skill to write UI tests for your Blazor application.

Frequently Asked Questions about playwright-blazor-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write end-to-end UI tests for Blazor WebAssembly applications?▼

End-to-end UI tests for Blazor WebAssembly applications are automated by writing C# test scripts that manage browser navigation, user interactions, and component authentication using Playwright.

Can I test SignalR updates and interactive components in Blazor Server using Playwright?▼

Yes, you can test SignalR updates and interactive components in Blazor Server by automating Playwright to verify real-time UI changes, complex user interactions, and authentication flows.

What C# testing frameworks are compatible with Playwright for Blazor UI testing?▼

Playwright for Blazor UI testing is compatible with C# test frameworks like MSTest and xUnit, which provide the necessary structure to execute automated end-to-end test suites.

How do I debug Blazor UI test failures and capture screenshots during execution?▼

Debug Blazor UI test failures and capture screenshots during execution by utilizing Playwright's browser developer tools integration, allowing you to inspect DOM states and visual regressions.

Do I need to install Playwright browsers separately to run Blazor e2e tests?▼

Yes, you need to install Playwright browser binaries separately to run Blazor e2e tests, as the automation framework requires these local browser executables to drive the web application.