I have a EditForm containing a TelerikTextArea wrapped in an if statement that will hide the test area after submit. This works find in browser, but using bunit I get an exception. I assume this is due to the JS library not being loaded. Do you know how to fix this?
5 Answers, 1 is accepted
Hi Steven,
Can you confirm you have working IJSRuntime injected (mocked with tools like JustMock or Moq, not the one that comes with bUnit), as explained here https://github.com/telerik/blazor-ui/tree/master/testing ?
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I literally just figured it out.
I miss read some bunit docs that made is sound like IJsRuntime was auto injected.
All good now thanks!
I'm happy to see you move forward, Steven.
Would it be OK with you if I moved this ticket to the public forums, I think the information here might help others in the future too?
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hey
Sure go for it.
Regards
Steven
Thank you, it's public here.
Regards,
Marin Bratanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.