library(shinytest2)
test_that("smartselect works", {
skip_on_cran()
shiny_app_path <-
system.file("examples/smartselect/app.R", package = "shinyMobile")
app <- AppDriver$new(
shiny_app_path,
name = "smartselect-app"
)
app$expect_values(input = "smartselect")
app$click(select = "#update")
app$wait_for_idle(1000)
app$expect_values(input = "smartselect")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.