You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a app that can take query parameters to set up some inputs. I am using the approach highlighted in #219 (comment) to test the app with the custom url. However, the get_download function fails and instead of downloading the correct file, downloads an html file.
In my case this becomes http://127.0.0.1:4895/?foo=barsession/d7b1669e84114236fc18752d3fd5c547/download/downloadData?w= . If I modify this to remove the query part http://127.0.0.1:4895/session/d7b1669e84114236fc18752d3fd5c547/download/downloadData?w=, then the download works as expected.
As a temporary fix, I am opening the app with the custom URL so that the app can use the query parameters while loading and before downloading, set the url manually to remove the query part.
I have a app that can take query parameters to set up some inputs. I am using the approach highlighted in #219 (comment) to test the app with the custom url. However, the
get_download
function fails and instead of downloading the correct file, downloads an html file.Here's a small reprex:
Created on 2023-09-29 with reprex v2.0.2
I believe the issue seems to be within
app_download
function when it generates thefull_url
shinytest2/R/app-driver-expect-download.R
Line 22 in 176131d
In my case this becomes
http://127.0.0.1:4895/?foo=barsession/d7b1669e84114236fc18752d3fd5c547/download/downloadData?w=
. If I modify this to remove the query parthttp://127.0.0.1:4895/session/d7b1669e84114236fc18752d3fd5c547/download/downloadData?w=
, then the download works as expected.As a temporary fix, I am opening the app with the custom URL so that the app can use the query parameters while loading and before downloading, set the url manually to remove the query part.
But this is not desirable. Is there a better way until there's a fix?
The text was updated successfully, but these errors were encountered: