|
Hello, I am currently working on a blazor project and I am trying to do a unit test with bunit, but I am having a problem when I try to make a Change on an InputTextArea Version Utilisé: //Page Razor //Page Test |
Replies: 1 comment 1 reply
|
Hi Cedric, try changing cut.Find("#PrecisionLocal")The error message you are getting is likely because To inspect the generated markup, debug the test and look at the |
Hi Cedric,
try changing
cut.FindAll("input").GetElementById("PrecisionLocal")to this:The error message you are getting is likely because
GetElementByIdreturns null, because there is no element with that ID in the markup.To inspect the generated markup, debug the test and look at the
cut.Markupproperty.