Skip to content

Add $click() method to MockSession #2745

Open
@alandipert

Description

@alandipert

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions