How do you test HttpContext with a CascadingParameter in Blazor? #1485
Replies: 1 comment
-
It's always the way..... right after posting this it started working when I changed the test methods from Might be useful to my future self or someone else if they hit this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've read through the documentation and from what I can work out, I shbould be able to do this:
Where the component I'm testing just has:
But when I try to run the tests, I always get this error:
If I debug the test, it seems to be running the component fine and I get all the way to the
Verify(...)
call. If I inspect thecut
, it is showing the correct markup. The test just fails while Verify is doing its compare, I think.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions