aaronontheweb/dotnet-skills
Playwright Blazor Testing
3 169e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Si vous testez des applications Blazor avec Playwright, le principal piège est que la navigation interne ne déclenche pas de rechargement de page, si bien que les attentes habituelles de réseau inactif ne fonctionnent pas. Ce Skill détaille les schémas qui fonctionnent vraiment.
Voir la description originale (anglais)
If you're testing Blazor apps with Playwright, the main gotcha is that internal navigation doesn't trigger page reloads, so the usual network idle waits don't work. This skill walks through the patterns that actually matter: waiting for DOM changes instead of network activity, using data-test attributes for stable selectors, handling authentication via cookie injection to skip the login dance, and catching Blazor-specific errors through the blazor-error-ui element. It covers both Server and WebAssembly modes, with concrete examples for forms, routing, and SignalR interactions. The setup is straightforward, just install the Microsoft.Playwright package and run the browser install command.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.