-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add session$click()
to testServer()
#3764
Comments
I just noticed the related issue #2745 |
Hi @daattali , Thank you for opening this issue. If I have |
I am building an app with many observeEvents and I need a way to simulate button clicks while running tests. adding |
Thanks @Shelmith-Kariuki for writing in this issue and to @daattali for opening it. I wrote an answer in the related issue here with an example of how I'd approach this problem. Shel – please let me know if you're still having issues testing your module with that approach. I'm going to close this issue since #2745 provides a complete description of the problem. I will say that I think that it's unlikely that we'd add a specific |
Currently, it's very awkward to test action buttons using
testServer()
, because there is no dedicated function to clicking on them. They are treated as regular inputs, so if I want to simulate a click, I need to manually set its input value to the right integer withsession$setInputs()
.It would be very useful to have a
session$click()
that would work for buttonsThe text was updated successfully, but these errors were encountered: