library(shinytest2)
test_that("Make sure script tags are executed", {
app <- AppDriver$new()
app$wait_for_js("window.insert_ui_script")
expect_equal(
app$get_js("window.insert_ui_script"),
TRUE
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.