Debian Codegraph @

inst/app_template/tests/testthat/test-shinytest2.R

raw
1 library(shinytest2)
2
3 test_that("Initial snapshot values are consistent", {
4 app <- AppDriver$new(name = "init")
5 app$expect_values()
6 }){{
7 if (isTRUE(module)) {
8 shiny::HTML('
9
10
11 test_that("Module values are consistent", {
12 app <- AppDriver$new(name = "mod")
13 app$click("examplemodule1-button")
14 app$click("examplemodule1-button")
15 app$expect_values()
16 })')
17 }
18 }}