library(shinytest2)
test_that("Migrated shinytest test: mytest.R", {
app <- AppDriver$new(variant = shinytest2::platform_variant(),
seed = 54322)
refresh_and_expect <- function() {
app$set_inputs(`reactlog_module-refresh` = "click")
Sys.sleep(3) # wait for reactlog to settle
app$expect_values()
# app$expect_screenshot() # Not consistent. Disabling
}
refresh_and_expect()
app$set_inputs(obs = 9)
app$set_inputs(obs = 8)
refresh_and_expect()
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.