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); |
0 replies
|
thanks. but I have another question. I'm trying to use the following code instead of form submit, but it's not working.
|
1 reply
|
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. |
1 reply
|
no error occurred. and the method is not executed. |
1 reply
|
https://github.com/drma-dev/TestSubmit sorry for the delay. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions