-
Hi. I'm able to test a component which uses a CascadingValue without issues, but I'm unable to figure out how to update the value of the cascading value and verify the component is re-rendered as expected. Here's an example scenario where the component under test is a custom Telerik Grid data column which is expected to display the DateTime field in the user's current time zone, specified by the cascading value. This is a Blazor Server web application which targets ASP.NET Core 3.1, and the user's time zone is retrieved from the browser using JavaScript, so it's expected to be null during the first render:
I'm currently using bUnit 1.6.4. When I tried the following:
I got the following exception:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I was able to set the properties of the component and re-render as follows:
|
Beta Was this translation helpful? Give feedback.
I was able to set the properties of the component and re-render as follows: