Open feddelegrand7 opened 2 years ago
Hi @feddelegrand7 ,
Not sure but from your session you are running RStudio server and I don't think we can call $view from there. This might help you, where I do port forwarding through ssh.
Hi @DivadNojnarg yes I'm working on RStudio Server, the issue is that when trying to use "expect_values" to test reactive objects in my Shiny app (without trying to call View() ), I get an error. I'll take a look at the workaround, thank you so much for your help
I am having a similar error when running tests in Gitlab CI on a kubernetes runner. The two commands that I have tried that error are app$get_value
:
Error in `app_httr_get(self, private, url, fn_404 = function(req) {
app_abort(self, private, c(paste0("Shiny server returned 404 for values URL: ",
url), i = "Is `shiny::runApp(test.mode = TRUE)` enabled?"),
call = cur_env)
})`: Could not find Shiny server. Shiny app is no longer running
Backtrace:
1. base::print(app$get_value(input = "transform"))
at test_peptide_workflow.R:32:2
2. app$get_value(input = "transform")
3. shinytest2:::app_get_value(...)
4. self$get_values(...)
5. shinytest2:::app_get_values(...)
6. shinytest2:::app_httr_get(...)
and app$wait_for_value
Error in `app_wait_for_value(self, private, input = input, output = output,
export = export, ..., ignore = ignore, timeout = timeout,
interval = interval)`: timeout reached when waiting for input: datatype
Backtrace:
1. app$wait_for_value(input = "datatype")
at test_peptide_workflow.R:16:2
2. shinytest2:::app_wait_for_value(...)
The tests pass running locally inside the same container specified in .gitlab-ci.yml
. Looking at screenshots, the app navigation works fine, and the input that is passed to wait_for_value
and get_value
are at least rendered on screen when the methods are called.
Hi, Thank you for the amazing package, I'm encountering a strange error. When I record a test app, I click on
Expect Shiny Values
, works great but then when I hitSave test and exit
, I get the following Error:I tried to reproduce the test in code (see below please), I get the same error.
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank" [11926:11926:0726/155925.132116:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY [11926:11926:0726/155925.132160:ERROR:env.cc(226)] The platform failed to initialize. Exiting.