testing plain InputTextArea @bind-Value #808
Replies: 2 comments 4 replies
-
If you are doing stuff asynchronously in your event handler you might need this: https://bunit.dev/docs/verification/async-assertion I'm about to board a plane, so that's the best guess right now. |
Beta Was this translation helpful? Give feedback.
-
Hey @ClemensOesterle, your In your particular case there are two things you could do. The first (and preferred) way: utilize submitButton.Click();
cut.WaitForAssertion(() => model.Value.Should().Be("asdf")); In theory you could use |
Beta Was this translation helpful? Give feedback.
-
I have a blazor project where I use standard EditForm / InputTextArea,
but when i try to run it in a bunit test the @bind-Value does not propagate the updated value, which is working fine when running the application.
Can one of you guys tell me what I am doing wrong resp. overlooking here?
Thanks in advance
Clemens
Beta Was this translation helpful? Give feedback.
All reactions