test_that("updateCopyText works", {
demo_app <- system.file("demo.R", package = "clipboardjs")
app <- shinytest::ShinyDriver$new(demo_app)
btn_html <- app$findWidget("cp3")$getHtml()
app$waitForShiny()
expect_snapshot(btn_html)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.