Open
Description
MockSession
exposes a setInputs()
method that can be used to programmatically set inputs, but we don't offer an easy way to click an action button programmatically without an understanding of the way button inputs transition from NULL to 0 first click and increase monotonically thereafter.
I propose a new$click()
method on MockSession that accepts a character vector of actionButton input names and "clicks" them, internally handling value transitions.