With Razor Pages, we had the TestServer class which we would use to write [Integration tests in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/test/integration-tests?view=aspnetcore-3.1).

How would one go about testing a [Blazor Server](https://learn.microsoft.com/en-us/aspnet/core/blazor/hosting-models?view=aspnetcore-3.1#blazor-server) app? When I say integration testing, I mean testing the whole app: sending a request to the TestServer which runs the app, getting an HTML page back, and checking its contents.

Is this possible with Blazor Server? If not, what is the recommended approach for integration testing Blazor Server apps?