How do I test Blazor Server from Playwright?
I have the following code to start up a kestrel server on a random port. using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.Server; using Microsoft.AspNetCore.Hosting.Server.Features; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Abc; public sealed class KestrelWebAppFactory : WebApplicationFactory<Program> { protected override IHost CreateHost(IHostBuilder builder) { // Build the TestServer host first (required by WebApplicationFactory) var testHost = builder.Build(); // Reconfigure the
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.