Nothing
test_that("useRouteError() renders error message", {
skip_on_cran()
app <- shinytest2::AppDriver$new(
app_dir = testthat::test_path("test-apps", "UseRouteError")
)
app$wait_for_idle()
app$get_js("window.location.hash = '#/broken'")
app$wait_for_idle()
error_text <- app$get_text("#errorMsg")
expect_equal(error_text, "test error message")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.