Replies: 5 comments 5 replies
-
Hi @drma-dev, I would probably do something like this: var handlerCalled = false;
var model = FakeData.GetVariable().Generate();
var cut = ctx.RenderComponent<VariableData>(parameters => parameters
.Add(p => p.Updated, () => handlerCalled = true)
.Add(p => p.Variable, model)
);
cut.FindByTag("form").Submit();
Assert.AreEqual(true, handlerCalled); |
Beta Was this translation helpful? Give feedback.
-
thanks. but I have another question. I'm trying to use the following code instead of form submit, but it's not working.
|
Beta Was this translation helpful? Give feedback.
-
the button that triggers the submit form does not work. I saw someone talking about it in another post and they were recognizing that it didn't work anyway. that's when I started calling the form post. |
Beta Was this translation helpful? Give feedback.
-
no error occurred. and the method is not executed. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/drma-dev/TestSubmit sorry for the delay. |
Beta Was this translation helpful? Give feedback.
-
I have the following situation
and the following test
I know I can have any attribute and fill it with a value and test it, but if I don't want to go that way.
is there a way to test if an event has fired? in this case Update event.
Beta Was this translation helpful? Give feedback.
All reactions