rstudio / shinytest

Automated testing for shiny apps
https://rstudio.github.io/shinytest/
Other
225 stars 55 forks source link

Opening ShinyDriver with URL parameters for bookmarking and URL parameter testing #392

Open zsigmas opened 3 years ago

zsigmas commented 3 years ago

It would be interesting to be able to create an app with some url parameters for testing purposes:

app <- shinytest::ShinyDriver(path="path/to/app/", url="/?my_url_parameter=hello")

# Or also during the app testing
app$set_url("/?my_url_parameter=hello_again")

This could help testing shiny bookmarking, which can be challenging for complicated modules, or that url parameters are correctly read.

Integrating this in the recordTest app may be more challenging but I write most of the shiny tests manually and any of the above would be really helpful.