cmu-delphi / forecast-eval

delphi.cmu.edu/forecast-eval
MIT License
5 stars 2 forks source link

Make tool that lets us run specific dashboard components in an automated way (for profiling) #278

Open nmdefries opened 1 year ago

nmdefries commented 1 year ago

The main goal I have in mind is to use this for profiling. Currently the dashboard can be profiled via profvis::profvis(shiny::runApp("<app dir>")) but requires a human to provide the interaction. This makes it difficult to redo and to compare behavior of exactly the same actions.

My understanding of Shiny testing is that we want to use Selenium to click buttons on the dashboard and time how long it takes a particular html element (by id) to show up. The shinytest package may also be useful.

Perhaps we should make a more generalized tool in case we want to apply it to other automated dashboard tasks.