-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing example on how to use TestServer with ASP.NET 6 #25263
Comments
@benm-eras ... The Blazor (Razor component) test guidance is located in the Blazor node at ... https://docs.microsoft.com/aspnet/core/blazor/test AFAICT, there has been work on |
Thanks @guardrex I was looking into starting the app to run integration tests on it with Playwright. I have done this in .NET 5 with |
Yes, I'm trying to jog my memory on this subject after 18 months. No issues on this subject have been opened since then IIRC. Now that you mention it, yes ... I just looked 👀 ... I see/recall now that Playwright is just for the browser automation aspect.
There's a line at the end tho that says ...
... referring to ... Does that cover your ask here? |
I am looking to use the "TestServer" method and the resulting I see no mention of
I can then point Playwright (or my browser) to |
I see. They did place a Q&A here ... Scroll down to ...
Rick, I'm going to leave this up to you if you want to make further updates. I thought for a moment that this was more directly Blazor-related, but the team is still recommending our Blazor guidance for the component testing aspects. This issue is about |
Ah I see, I still don't think that is very clear as I don't think I would be able to use the Everything is working as I would expect, but I just think the Docs need some more information on .NET 6 and TestServer. Thanks for your time regardless. |
Yeah ... Rick will be along in a bit to see if a line (and/or example) makes sense. What I'm going to do is make a note on a tracking issue that I use for Blazor docs to provide guidance about the |
Brilliant, thanks Luke |
This will be covered in #27089 |
The section titled Test with WebApplicationFactory or TestServer only includes an example of how to use the
WebApplicationFactory
with .NET 6. Is theTestServer
still available in .NET 6? If so, is it possible to use it with Blazor?Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: