Is there a way to use ShinyDriver$snapshotDownload in the shinytest package (or another method) to test whether or not the download is successful? I don't need a comparison of differences in the downloaded data/rmarkdown pdf file (and the rmarkdown file throws an error with shinytest comparisons anyway...).
I just want to test is whether any changes to the app cause the downloadHander to fails.
Apologies in advance if there's a clear solution - I didn't see anything in rstudio community and I can't find much documentation for shinytest (especially with regard to downloads).
A hack-ish solution to this seems to be to use testthat to test whether the length of the app$snapshotDownload() output (a raw vector of a long length) is greater than a small value (like 100).