Skip to content

Package option for wait_for_*() timeouts #213

@gadenbuie

Description

@gadenbuie

If you're using a lot of $wait_for_js() calls, 30 seconds is a massively long timeout, and it'd be nice to be able to set a global option for the default timeout, e.g.

options(shinytest2.wait_for_js.timeout = 5 * 1000)

instead of having to include timeout = 5 * 1000 in all of my calls to $wait_for_js(). I would imagine heavy users of other wait_for_*() functions would benefit from similar options.

An alternative would be to lower the timeout for all of the wait functions to something reasonably small, e.g. 5 or 10 seconds, and then users who know they need to wait longer can opt into a longer wait time. (And I guess you'd also use longer timeouts for app startup.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions