-
-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
I'm implementing an integration test with bUnit on a Blazor wasm component who use TelerikTextBox component.
I need to set the TelerikTextBox value as it can be binded to the associated component property:
Example:
razor:
<TelerikTextBox Id="txtUserName" @bind-Value="@UserName" />
cs:
public class Users: ComponentBase
{
public string UserName {get;set;}
}
In the test method i can find and set the TelerikTextBox value with:
var txt = cut.FindComponents<TelerikTextBox>().FirstOrDefault(txt => txt.Instance.Id == "txtUserName")?.Instance;
txt.Value = "My TextBox Value";
but it not bind the property UserName of Users component.
How to reach my goal?
Thanks
Metadata
Metadata
Assignees
Labels
No labels