I have the following problem: I need to test if a function is being called on my test, but to test it properly, I need to press enter or submit the form, and it doesn\'t see